summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/actions.cpp6
-rw-r--r--src/actions/chat.cpp4
-rw-r--r--src/actions/commands.cpp14
3 files changed, 12 insertions, 12 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index d087f39e7..6175ec904 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -649,7 +649,7 @@ impHandler(where)
impHandler0(who)
{
- Net::getChatHandler()->who();
+ chatHandler->who();
return true;
}
@@ -946,13 +946,13 @@ impHandler0(dump)
impHandler0(serverIgnoreAll)
{
- Net::getChatHandler()->ignoreAll();
+ chatHandler->ignoreAll();
return true;
}
impHandler0(serverUnIgnoreAll)
{
- Net::getChatHandler()->unIgnoreAll();
+ chatHandler->unIgnoreAll();
return true;
}
diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp
index 3d12d99e1..3c6b4f7fc 100644
--- a/src/actions/chat.cpp
+++ b/src/actions/chat.cpp
@@ -53,7 +53,7 @@ static void outString(const ChatTab *const tab,
{
if (!tab)
{
- Net::getChatHandler()->me(def, GENERAL_CHANNEL);
+ chatHandler->me(def, GENERAL_CHANNEL);
return;
}
@@ -85,7 +85,7 @@ static void outString(const ChatTab *const tab,
break;
}
default:
- Net::getChatHandler()->me(def, GENERAL_CHANNEL);
+ chatHandler->me(def, GENERAL_CHANNEL);
break;
}
}
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;
}