summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-19 16:05:51 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-19 16:05:51 +0300
commit549acdd072b732135dfa7b79015abf7340bef585 (patch)
tree4ef633c931e05357dd1b89bd7b399ed0fbb0115f /src/actions/commands.cpp
parent39276c4fc0e94f89a53e6c2cb05fd46edea3cc13 (diff)
downloadplus-549acdd072b732135dfa7b79015abf7340bef585.tar.gz
plus-549acdd072b732135dfa7b79015abf7340bef585.tar.bz2
plus-549acdd072b732135dfa7b79015abf7340bef585.tar.xz
plus-549acdd072b732135dfa7b79015abf7340bef585.zip
Fix code style.
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r--src/actions/commands.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index b90a801d1..d2155d54b 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -22,7 +22,6 @@
#include "actormanager.h"
#include "configuration.h"
-#include "flooritem.h"
#include "game.h"
#include "inventory.h"
#include "item.h"
@@ -494,11 +493,18 @@ impHandler(imitation)
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());
+ {
+ localPlayer->setImitate(static_cast<WhisperTab*>(
+ event.tab)->getNick());
+ }
else
+ {
localPlayer->setImitate("");
+ }
return true;
}