diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-17 00:55:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-17 00:55:22 +0300 |
commit | 3a7313c027407e3b35360a021c72fe78f181d81d (patch) | |
tree | bb313b81c7feb42c2a0b5855c1eca00ef2d7c1b1 /src/actions/commands.cpp | |
parent | 1307b14ff24f3935fa58aef405ffb246c0741336 (diff) | |
download | plus-3a7313c027407e3b35360a021c72fe78f181d81d.tar.gz plus-3a7313c027407e3b35360a021c72fe78f181d81d.tar.bz2 plus-3a7313c027407e3b35360a021c72fe78f181d81d.tar.xz plus-3a7313c027407e3b35360a021c72fe78f181d81d.zip |
Remove getter for chatHandler.
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r-- | src/actions/commands.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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; } |