summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-27 15:45:07 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-27 15:45:07 +0300
commitabdc57a4acfa490ee34985b56b2d985266ccc7e4 (patch)
tree8016393684c2e03dc0722dea98c44ff3e31d0ea5 /src/actions/commands.cpp
parent0b9105af0ae2b85a0a3ea5364d8a854d107ce34a (diff)
downloadmv-abdc57a4acfa490ee34985b56b2d985266ccc7e4.tar.gz
mv-abdc57a4acfa490ee34985b56b2d985266ccc7e4.tar.bz2
mv-abdc57a4acfa490ee34985b56b2d985266ccc7e4.tar.xz
mv-abdc57a4acfa490ee34985b56b2d985266ccc7e4.zip
Move chat command /enableaway 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 aae31db26..905d7a2fb 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -634,4 +634,16 @@ impHandler(disableAway)
return false;
}
+impHandler(enableAway)
+{
+ if (event.tab)
+ {
+ event.tab->setNoAway(false);
+ if (chatWindow)
+ chatWindow->saveState();
+ return true;
+ }
+ return false;
+}
+
} // namespace Actions