summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-25 13:39:28 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-25 13:39:28 +0300
commit0ae262d137e24c44064f59102ff6b72b19c60b71 (patch)
treebc03b97a2c0fd007f6076daf18ce6e56c5630a49 /src/commands.cpp
parenta7c2351c708c38bf020e8e1250b6a78cb2b6f89e (diff)
downloadplus-0ae262d137e24c44064f59102ff6b72b19c60b71.tar.gz
plus-0ae262d137e24c44064f59102ff6b72b19c60b71.tar.bz2
plus-0ae262d137e24c44064f59102ff6b72b19c60b71.tar.xz
plus-0ae262d137e24c44064f59102ff6b72b19c60b71.zip
Move chat command /toggle into actions.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 41c828840..b2e1e6eee 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -251,48 +251,6 @@ static void outStringNormal(ChatTab *const tab,
}
}
-impHandler(toggle)
-{
- if (event.args.empty())
- {
- if (chatWindow && event.tab)
- {
- // TRANSLATORS: message from toggle chat command
- event.tab->chatLog(chatWindow->getReturnTogglesChat() ?
- _("Return toggles chat.") : _("Message closes chat."));
- }
- return true;
- }
-
- switch (parseBoolean(event.args))
- {
- case 1:
- if (event.tab)
- {
- // TRANSLATORS: message from toggle chat command
- event.tab->chatLog(_("Return now toggles chat."));
- }
- if (chatWindow)
- chatWindow->setReturnTogglesChat(true);
- return true;
- case 0:
- if (event.tab)
- {
- // TRANSLATORS: message from toggle chat command
- event.tab->chatLog(_("Message now closes chat."));
- }
- if (chatWindow)
- chatWindow->setReturnTogglesChat(false);
- return true;
- case -1:
- if (event.tab)
- event.tab->chatLog(strprintf(BOOLEAN_OPTIONS, "toggle"));
- return true;
- default:
- return true;
- }
-}
-
impHandler0(present)
{
if (chatWindow)