summaryrefslogtreecommitdiff
path: root/src/actions
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
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')
-rw-r--r--src/actions/commands.cpp12
-rw-r--r--src/actions/commands.h1
2 files changed, 13 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
diff --git a/src/actions/commands.h b/src/actions/commands.h
index 140877eb5..02514ece0 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -64,6 +64,7 @@ namespace Actions
decHandler(dontRemoveName);
decHandler(removeName);
decHandler(disableAway);
+ decHandler(enableAway);
} // namespace Actions
#undef decHandler