summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-11 22:35:17 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-11 22:35:17 +0300
commite597401af5d0005f3f6039cc0e76d8ecfaae66ef (patch)
tree1116a3f4fd59c0a8819bb86b21db413e26d189e6 /src/actions/commands.cpp
parentbe214fb83a0207e6675f08d299cd30d575371794 (diff)
downloadplus-e597401af5d0005f3f6039cc0e76d8ecfaae66ef.tar.gz
plus-e597401af5d0005f3f6039cc0e76d8ecfaae66ef.tar.bz2
plus-e597401af5d0005f3f6039cc0e76d8ecfaae66ef.tar.xz
plus-e597401af5d0005f3f6039cc0e76d8ecfaae66ef.zip
Add whisper commands for server side ignore/unignore whispers.
New chat commands: /serverignore NICK - ignore whispers on server from NICK. /serverunignore NICK - unignore whispers on server from NICK.
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