diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-28 23:06:32 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-28 23:06:32 -0600 |
commit | 8748f26234bba1e71bbe059147fb02256f8cec2a (patch) | |
tree | cff8674ec8124fe19aab1f92197c6c2b2b447aa1 /src/commandhandler.h | |
parent | 088c0e4680d8013f01bdc70ac4f340f98afa2394 (diff) | |
download | mana-8748f26234bba1e71bbe059147fb02256f8cec2a.tar.gz mana-8748f26234bba1e71bbe059147fb02256f8cec2a.tar.bz2 mana-8748f26234bba1e71bbe059147fb02256f8cec2a.tar.xz mana-8748f26234bba1e71bbe059147fb02256f8cec2a.zip |
Fix output location for CommandHandler
Diffstat (limited to 'src/commandhandler.h')
-rw-r--r-- | src/commandhandler.h | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/src/commandhandler.h b/src/commandhandler.h index 43ce172f..b9b61647 100644 --- a/src/commandhandler.h +++ b/src/commandhandler.h @@ -24,6 +24,10 @@ #include <string> +class ChatTab; + +extern ChatTab *localChatTab; + /** * A class to parse and handle user commands */ @@ -43,98 +47,98 @@ class CommandHandler /** * Parse and handle the given command. */ - void handleCommand(const std::string &command); + void handleCommand(const std::string &command, ChatTab *tab = localChatTab); private: /** * Handle an announce command. */ - void handleAnnounce(const std::string &args); + void handleAnnounce(const std::string &args, ChatTab *tab); /** * Handle a help command. */ - void handleHelp(const std::string &args); + void handleHelp(const std::string &args, ChatTab *tab); /** * Handle a where command. */ - void handleWhere(); + void handleWhere(const std::string &args, ChatTab *tab); /** * Handle a who command. */ - void handleWho(); + void handleWho(const std::string &args, ChatTab *tab); /** * Handle a msg command. */ - void handleMsg(const std::string &args); + void handleMsg(const std::string &args, ChatTab *tab); /** * Handle a join command. */ - void handleJoin(const std::string &args); + void handleJoin(const std::string &args, ChatTab *tab); /** * Handle a listchannels command. */ - void handleListChannels(); + void handleListChannels(const std::string &args, ChatTab *tab); /** * Handle a listusers command. */ - void handleListUsers(); + void handleListUsers(const std::string &args, ChatTab *tab); /** * Handle a topic command. */ - void handleTopic(const std::string &args); + void handleTopic(const std::string &args, ChatTab *tab); /** * Handle a quit command. */ - void handleQuit(); + void handleQuit(const std::string &args, ChatTab *tab); /** * Handle a clear command. */ - void handleClear(); + void handleClear(const std::string &args, ChatTab *tab); /** * Handle a party command. */ - void handleParty(const std::string &args); + void handleParty(const std::string &args, ChatTab *tab); /** * Handle a op command. */ - void handleOp(const std::string &args); + void handleOp(const std::string &args, ChatTab *tab); /** * Handle a kick command. */ - void handleKick(const std::string &args); + void handleKick(const std::string &args, ChatTab *tab); /** * Handle a me command. */ - void handleMe(const std::string &args); + void handleMe(const std::string &args, ChatTab *tab); /** * Handle a record command. */ - void handleRecord(const std::string &args); + void handleRecord(const std::string &args, ChatTab *tab); /** * Handle a toggle command. */ - void handleToggle(const std::string &args); + void handleToggle(const std::string &args, ChatTab *tab); /** * Handle a present command. */ - void handlePresent(const std::string &args); + void handlePresent(const std::string &args, ChatTab *tab); }; extern CommandHandler *commandHandler; |