From 3a7313c027407e3b35360a021c72fe78f181d81d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 17 Sep 2014 00:55:22 +0300 Subject: Remove getter for chatHandler. --- src/actions/commands.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/actions/commands.cpp') diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index c7e12af88..a1ae6b32c 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -630,7 +630,7 @@ impHandler(testParticle) impHandler(talkRaw) { - Net::getChatHandler()->talkRaw(event.args); + chatHandler->talkRaw(event.args); return true; } @@ -638,21 +638,21 @@ impHandler(talkPet) { // in future probably need add channel detection if (!localPlayer->getPets().empty()) - Net::getChatHandler()->talkPet(event.args, GENERAL_CHANNEL); + chatHandler->talkPet(event.args, GENERAL_CHANNEL); else - Net::getChatHandler()->talk(event.args, GENERAL_CHANNEL); + chatHandler->talk(event.args, GENERAL_CHANNEL); return true; } impHandler(gm) { - Net::getChatHandler()->talk("@wgm " + event.args, GENERAL_CHANNEL); + chatHandler->talk("@wgm " + event.args, GENERAL_CHANNEL); return true; } impHandler(hack) { - Net::getChatHandler()->sendRaw(event.args); + chatHandler->sendRaw(event.args); return true; } @@ -676,7 +676,7 @@ impHandler(serverIgnoreWhisper) if (args.empty()) return false; - Net::getChatHandler()->ignore(args); + chatHandler->ignore(args); return true; } @@ -686,7 +686,7 @@ impHandler(serverUnIgnoreWhisper) if (args.empty()) return false; - Net::getChatHandler()->unIgnore(args); + chatHandler->unIgnore(args); return true; } -- cgit v1.2.3-70-g09d2