summaryrefslogtreecommitdiff
path: root/src/commandhandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/commandhandler.h')
-rw-r--r--src/commandhandler.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/commandhandler.h b/src/commandhandler.h
index 2969d1a1..783e400d 100644
--- a/src/commandhandler.h
+++ b/src/commandhandler.h
@@ -28,6 +28,9 @@ class ChatTab;
extern ChatTab *localChatTab;
+#define BOOLEAN_OPTIONS _("Options to /%s are \"yes\", \"no\", \"true\", "\
+"\"false\", \"1\", \"0\".")
+
/**
* A class to parse and handle user commands
*/
@@ -49,6 +52,8 @@ class CommandHandler
*/
void handleCommand(const std::string &command, ChatTab *tab = localChatTab);
+ static char parseBoolean(const std::string &value);
+
private:
/**
* Handle an announce command.