summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r--src/actions/commands.cpp14
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;
}