summaryrefslogtreecommitdiff
path: root/src/commandhandler.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-05-28 21:38:53 -0600
committerJared Adams <jaxad0127@gmail.com>2009-05-28 21:42:50 -0600
commitec1c6bc0d44d0b6b94607d36a8cd28e6c4e484cd (patch)
tree02ca63f23cadb2ee432b33a48bcde6dbd343af09 /src/commandhandler.h
parent08f7e0c085078d863b822d6e65adceb64b264004 (diff)
downloadmana-ec1c6bc0d44d0b6b94607d36a8cd28e6c4e484cd.tar.gz
mana-ec1c6bc0d44d0b6b94607d36a8cd28e6c4e484cd.tar.bz2
mana-ec1c6bc0d44d0b6b94607d36a8cd28e6c4e484cd.tar.xz
mana-ec1c6bc0d44d0b6b94607d36a8cd28e6c4e484cd.zip
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.
Diffstat (limited to 'src/commandhandler.h')
-rw-r--r--src/commandhandler.h15
1 files changed, 14 insertions, 1 deletions
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;