Mercurial > hg
annotate mcabber/src/commands.h @ 1079:537873e68ea6
The field "name" isn't used anymore
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 04 Dec 2006 22:20:26 +0100 |
parents | 875d2c9d399c |
children | c30c315dc447 |
rev | line source |
---|---|
47 | 1 #ifndef __COMMANDS_H__ |
2 #define __COMMANDS_H__ 1 | |
3 | |
94 | 4 #include <glib.h> |
5 | |
102 | 6 // Command structure |
7 typedef struct { | |
8 char name[32]; | |
9 const char *help; | |
10 guint completion_flags[2]; | |
1059 | 11 void (*func)(char *); |
102 | 12 } cmd; |
13 | |
96 | 14 void cmd_init(void); |
238 | 15 cmd *cmd_get(const char *command); |
96 | 16 int process_line(char *line); |
288 | 17 int process_command(char *line); |
285 | 18 char *expandalias(char *line); |
47 | 19 |
777
e6d42f239541
"/version" shows Mercurial changeset (if there's one)
Mikael Berthe <mikael@lilotux.net>
parents:
580
diff
changeset
|
20 extern char *mcabber_version(void); |
298
35cda94e570d
Add /connect and /disconnect commands
Mikael Berthe <mikael@lilotux.net>
parents:
288
diff
changeset
|
21 extern void mcabber_connect(void); |
35cda94e570d
Add /connect and /disconnect commands
Mikael Berthe <mikael@lilotux.net>
parents:
288
diff
changeset
|
22 |
960
90ff94f0fbbb
Auto-whois shouldn't enable chat mode
Mikael Berthe <mikael@lilotux.net>
parents:
837
diff
changeset
|
23 void room_whois(gpointer bud, char *nick_locale, guint interactive); |
837
7c74eef1d0e0
New option "muc_auto_whois"
Mikael Berthe <mikael@lilotux.net>
parents:
777
diff
changeset
|
24 |
47 | 25 #endif /* __COMMANDS_H__ */ |
26 | |
580 | 27 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */ |