summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/commands.cpp20
-rw-r--r--src/actions/commands.h2
2 files changed, 22 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index 5a7e16334..541a09aa0 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -668,4 +668,24 @@ impHandler(debugSpawn)
return true;
}
+impHandler0(serverIgnoreWhisper)
+{
+ std::string args = getNick(event);
+ if (args.empty())
+ return false;
+
+ Net::getChatHandler()->ignore(args);
+ return true;
+}
+
+impHandler0(serverUnIgnoreWhisper)
+{
+ std::string args = getNick(event);
+ if (args.empty())
+ return false;
+
+ Net::getChatHandler()->unIgnore(args);
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/commands.h b/src/actions/commands.h
index 46932681c..333afc9eb 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -71,6 +71,8 @@ namespace Actions
decHandler(gm);
decHandler(hack);
decHandler(debugSpawn);
+ decHandler(serverIgnoreWhisper);
+ decHandler(serverUnIgnoreWhisper);
} // namespace Actions
#undef decHandler