summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-26 12:04:45 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-26 12:04:45 +0300
commit1a9a7ece01b6633e1fe860cba03bfd0d895c172d (patch)
treeda2b92377903081be4746a2eb8ce5a879c334691 /src/commands.cpp
parentae4062ed3c48706127c32efbc70cca0cc5ce19f8 (diff)
downloadplus-1a9a7ece01b6633e1fe860cba03bfd0d895c172d.tar.gz
plus-1a9a7ece01b6633e1fe860cba03bfd0d895c172d.tar.bz2
plus-1a9a7ece01b6633e1fe860cba03bfd0d895c172d.tar.xz
plus-1a9a7ece01b6633e1fe860cba03bfd0d895c172d.zip
Move chat command /imitation into actions.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 0929d525d..464148a87 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -151,20 +151,6 @@ static void outStringNormal(ChatTab *const tab,
}
}
-impHandler(imitation)
-{
- if (!localPlayer)
- return false;
-
- if (!event.args.empty())
- localPlayer->setImitate(event.args);
- else if (event.tab && event.tab->getType() == ChatTabType::WHISPER)
- localPlayer->setImitate(static_cast<WhisperTab*>(event.tab)->getNick());
- else
- localPlayer->setImitate("");
- return true;
-}
-
impHandler(hack)
{
Net::getChatHandler()->sendRaw(event.args);