From ec1c6bc0d44d0b6b94607d36a8cd28e6c4e484cd Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Thu, 28 May 2009 21:38:53 -0600 Subject: Add /ignore and /unignore commands These make it easy to ignore/unignore other players that aren't visible. Special versions are also available in WhisperTabs that don't need a name given. --- src/commandhandler.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/commandhandler.h') diff --git a/src/commandhandler.h b/src/commandhandler.h index 783e400d..eb73f239 100644 --- a/src/commandhandler.h +++ b/src/commandhandler.h @@ -54,7 +54,10 @@ class CommandHandler static char parseBoolean(const std::string &value); - private: + protected: + friend class ChatTab; + friend class WhisperTab; + /** * Handle an announce command. */ @@ -124,6 +127,16 @@ class CommandHandler * Handle a present command. */ void handlePresent(const std::string &args, ChatTab *tab); + + /** + * Handle an ignore command. + */ + void handleIgnore(const std::string &args, ChatTab *tab); + + /** + * Handle an unignore command. + */ + void handleUnignore(const std::string &args, ChatTab *tab); }; extern CommandHandler *commandHandler; -- cgit v1.2.3-70-g09d2