summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-27 15:29:50 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-27 15:29:50 +0300
commitb3f08b33aff591346efb4a94c4cfccdd7b120e9f (patch)
tree34501eda3aeacaa09f385d59a00237b9f1d89b3d /src/actions/commands.cpp
parent9de5536077107f36185c1132cd0cbcdbeefffabb (diff)
downloadmv-b3f08b33aff591346efb4a94c4cfccdd7b120e9f.tar.gz
mv-b3f08b33aff591346efb4a94c4cfccdd7b120e9f.tar.bz2
mv-b3f08b33aff591346efb4a94c4cfccdd7b120e9f.tar.xz
mv-b3f08b33aff591346efb4a94c4cfccdd7b120e9f.zip
Move chat command /dontremovename into actions.
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r--src/actions/commands.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index 9c34b9a5a..27d80bf00 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -598,4 +598,16 @@ impHandler(disableHighlight)
return false;
}
+impHandler(dontRemoveName)
+{
+ if (event.tab)
+ {
+ event.tab->setRemoveNames(false);
+ if (chatWindow)
+ chatWindow->saveState();
+ return true;
+ }
+ return false;
+}
+
} // namespace Actions