summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r--src/commandhandler.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp
index b1df134b0..0cdda3502 100644
--- a/src/commandhandler.cpp
+++ b/src/commandhandler.cpp
@@ -786,8 +786,7 @@ void CommandHandler::handleFollow(const std::string &args, ChatTab *tab)
if (tab->getType() == ChatTab::TAB_WHISPER)
{
WhisperTab *wTab = static_cast<WhisperTab*>(tab);
- if (wTab)
- player_node->setFollow(wTab->getNick());
+ player_node->setFollow(wTab->getNick());
}
}
}
@@ -804,8 +803,7 @@ void CommandHandler::handleImitation(const std::string &args, ChatTab *tab)
else if (tab && tab->getType() == ChatTab::TAB_WHISPER)
{
WhisperTab *wTab = static_cast<WhisperTab*>(tab);
- if (wTab)
- player_node->setImitate(wTab->getNick());
+ player_node->setImitate(wTab->getNick());
}
else
{