comparison mcabber/src/commands.c @ 98:f20831f7d349

[/trunk] Changeset 112 by mikael * Completion system enabled for commands. It almost works! ;-)
author mikael
date Wed, 20 Apr 2005 20:35:48 +0000
parents 8b2703ccc4be
children 4f3ad00b5187
comparison
equal deleted inserted replaced
97:191f4d00d19b 98:f20831f7d349
119 // If this isn't a command, this is a message and it is sent to the 119 // If this isn't a command, this is a message and it is sent to the
120 // currently selected buddy. 120 // currently selected buddy.
121 int process_line(char *line) 121 int process_line(char *line)
122 { 122 {
123 if (*line != '/') { 123 if (*line != '/') {
124 send_message(line); 124 send_message(line); // FIXME: are we talking to a _buddy_?
125 return 0; 125 return 0;
126 } 126 }
127 if (!strcasecmp(line, "/quit")) { 127 if (!strcasecmp(line, "/quit")) {
128 return 255; 128 return 255;
129 } 129 }