aboutsummaryrefslogtreecommitdiff
path: root/src/game/Chat.h
diff options
context:
space:
mode:
authorraczman <none@none>2009-06-08 20:19:13 +0200
committerraczman <none@none>2009-06-08 20:19:13 +0200
commit5ae74c5b589ff6530d0258bb77d32f4cba03020e (patch)
tree9016707a580b4e13388f1dab13dbaeca9362da84 /src/game/Chat.h
parentc7c092f54bc6aa988991c601d532322c5cb8df32 (diff)
Added readline support into CLI.
Supports scrolling through past commands, and tab-completion for commands (no subcommands, sorry). Requires libreadline package to build from now on! for debian/ubuntu: apt-get install libreadline5-dev Linux only, windows users shouldnt notice any difference. --HG-- branch : trunk
Diffstat (limited to 'src/game/Chat.h')
-rw-r--r--src/game/Chat.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/game/Chat.h b/src/game/Chat.h
index a8dbb5b98a5..cb5070a354d 100644
--- a/src/game/Chat.h
+++ b/src/game/Chat.h
@@ -73,7 +73,7 @@ class ChatHandler
int ParseCommands(const char* text);
virtual char const* GetName() const;
-
+ static ChatCommand* getCommandTable();
protected:
explicit ChatHandler() : m_session(NULL) {} // for CLI subclass
@@ -89,8 +89,6 @@ class ChatHandler
bool ShowHelpForCommand(ChatCommand *table, const char* cmd);
bool ShowHelpForSubCommands(ChatCommand *table, char const* cmd, char const* subcmd);
- ChatCommand* getCommandTable();
-
bool HandleAccountCommand(const char* args);
bool HandleAccountCreateCommand(const char* args);
bool HandleAccountDeleteCommand(const char* args);