From 549acdd072b732135dfa7b79015abf7340bef585 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 19 Dec 2014 16:05:51 +0300 Subject: Fix code style. --- src/actions/commands.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/actions/commands.cpp') 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(event.tab)->getNick()); + { + localPlayer->setImitate(static_cast( + event.tab)->getNick()); + } else + { localPlayer->setImitate(""); + } return true; } -- cgit v1.2.3-70-g09d2