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/commands.cpp | |
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/commands.cpp')
-rw-r--r-- | src/actions/commands.cpp | 12 |
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 |