From abdc57a4acfa490ee34985b56b2d985266ccc7e4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Aug 2014 15:45:07 +0300 Subject: Move chat command /enableaway into actions. --- src/actions/commands.cpp | 12 ++++++++++++ src/actions/commands.h | 1 + 2 files changed, 13 insertions(+) (limited to 'src/actions') 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 -- cgit v1.2.3-70-g09d2