summaryrefslogtreecommitdiff
path: root/src/core/commands.h
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-06-28 17:15:37 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-06-28 17:15:37 +0000
commit7e531cec7a80a3bc6cecb844d66ae5127f7e7a94 (patch)
tree2e2452b4fbec35a8a34e0b7364544c43d71bcd83 /src/core/commands.h
parentdd7ce4af23a0bb68a8c735c7e9a4c0d9c50ae08b (diff)
downloadirssi-7e531cec7a80a3bc6cecb844d66ae5127f7e7a94.zip
Automatic command completion and a few other fixes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@387 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/commands.h')
-rw-r--r--src/core/commands.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/commands.h b/src/core/commands.h
index fa553518..29ddbfb4 100644
--- a/src/core/commands.h
+++ b/src/core/commands.h
@@ -4,6 +4,7 @@
#include "signals.h"
typedef struct {
+ int count;
char *category;
char *cmd;
char **options;
@@ -14,6 +15,9 @@ enum {
CMDERR_OPTION_AMBIGUOUS = -2, /* ambiguous -option */
CMDERR_OPTION_ARG_MISSING = -1, /* argument missing for -option */
+ CMDERR_UNKNOWN, /* unknown command */
+ CMDERR_AMBIGUOUS, /* ambiguous command */
+
CMDERR_ERRNO, /* get the error from errno */
CMDERR_NOT_ENOUGH_PARAMS, /* not enough parameters given */
CMDERR_NOT_CONNECTED, /* not connected to IRC server */