From e597401af5d0005f3f6039cc0e76d8ecfaae66ef Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 11 Sep 2014 22:35:17 +0300 Subject: 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. --- src/actions/commands.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/actions/commands.cpp') 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 -- cgit v1.2.3-70-g09d2