summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/tabs/chattab.cpp2
-rw-r--r--src/gui/widgets/tabs/whispertab.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/tabs/chattab.cpp b/src/gui/widgets/tabs/chattab.cpp
index d699b29fe..54d675a85 100644
--- a/src/gui/widgets/tabs/chattab.cpp
+++ b/src/gui/widgets/tabs/chattab.cpp
@@ -434,7 +434,7 @@ void ChatTab::clearText()
void ChatTab::handleInput(const std::string &msg)
{
- Net::getChatHandler()->talk(ChatWindow::doReplace(msg),
+ chatHandler->talk(ChatWindow::doReplace(msg),
mChannelName);
}
diff --git a/src/gui/widgets/tabs/whispertab.cpp b/src/gui/widgets/tabs/whispertab.cpp
index a67b9450c..6c89a887b 100644
--- a/src/gui/widgets/tabs/whispertab.cpp
+++ b/src/gui/widgets/tabs/whispertab.cpp
@@ -53,7 +53,7 @@ void WhisperTab::handleInput(const std::string &msg)
{
std::string newMsg;
newMsg = ChatWindow::doReplace(msg);
- Net::getChatHandler()->privateMessage(mNick, newMsg);
+ chatHandler->privateMessage(mNick, newMsg);
if (localPlayer)
chatLog(localPlayer->getName(), newMsg);
@@ -77,7 +77,7 @@ void WhisperTab::handleCommand(const std::string &msg)
if (type == "me")
{
std::string str = strprintf("*%s*", args.c_str());
- Net::getChatHandler()->privateMessage(mNick, str);
+ chatHandler->privateMessage(mNick, str);
if (localPlayer)
chatLog(localPlayer->getName(), str);
else