diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-27 15:45:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-27 15:45:07 +0300 |
commit | abdc57a4acfa490ee34985b56b2d985266ccc7e4 (patch) | |
tree | 8016393684c2e03dc0722dea98c44ff3e31d0ea5 /src/actions | |
parent | 0b9105af0ae2b85a0a3ea5364d8a854d107ce34a (diff) | |
download | manaverse-abdc57a4acfa490ee34985b56b2d985266ccc7e4.tar.gz manaverse-abdc57a4acfa490ee34985b56b2d985266ccc7e4.tar.bz2 manaverse-abdc57a4acfa490ee34985b56b2d985266ccc7e4.tar.xz manaverse-abdc57a4acfa490ee34985b56b2d985266ccc7e4.zip |
Move chat command /enableaway into actions.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/commands.cpp | 12 | ||||
-rw-r--r-- | src/actions/commands.h | 1 |
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 |