diff options
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 8a5cad3f2..aae31db26 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -622,4 +622,16 @@ impHandler(removeName) return false; } +impHandler(disableAway) +{ + if (event.tab) + { + event.tab->setNoAway(true); + if (chatWindow) + chatWindow->saveState(); + return true; + } + return false; +} + } // namespace Actions |