diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-26 12:04:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-26 12:04:45 +0300 |
commit | 1a9a7ece01b6633e1fe860cba03bfd0d895c172d (patch) | |
tree | da2b92377903081be4746a2eb8ce5a879c334691 /src/commands.cpp | |
parent | ae4062ed3c48706127c32efbc70cca0cc5ce19f8 (diff) | |
download | manaplus-1a9a7ece01b6633e1fe860cba03bfd0d895c172d.tar.gz manaplus-1a9a7ece01b6633e1fe860cba03bfd0d895c172d.tar.bz2 manaplus-1a9a7ece01b6633e1fe860cba03bfd0d895c172d.tar.xz manaplus-1a9a7ece01b6633e1fe860cba03bfd0d895c172d.zip |
Move chat command /imitation into actions.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r-- | src/commands.cpp | 14 |
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); |