summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/guildchattab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/tabs/guildchattab.cpp')
-rw-r--r--src/gui/widgets/tabs/guildchattab.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gui/widgets/tabs/guildchattab.cpp b/src/gui/widgets/tabs/guildchattab.cpp
index 364b83968..8de95991f 100644
--- a/src/gui/widgets/tabs/guildchattab.cpp
+++ b/src/gui/widgets/tabs/guildchattab.cpp
@@ -107,11 +107,7 @@ void GuildChatTab::handleInput(const std::string &msg)
{
if (!guildManager)
return;
-
- if (chatWindow)
- guildManager->chat(chatWindow->doReplace(msg));
- else
- guildManager->chat(msg);
+ guildManager->chat(ChatWindow::doReplace(msg));
}
void GuildChatTab::showHelp()