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.cpp20
1 files changed, 20 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