Mercurial > hg
comparison mcabber/src/commands.c @ 129:03be1cc94560
[/trunk] Changeset 142 by mikael
* Do not enter chat mode when a command is entered.
author | mikael |
---|---|
date | Thu, 28 Apr 2005 12:22:34 +0000 |
parents | 81ccb1091dd8 |
children | 60694c9ddde3 |
comparison
equal
deleted
inserted
replaced
128:81ccb1091dd8 | 129:03be1cc94560 |
---|---|
164 int process_line(char *line) | 164 int process_line(char *line) |
165 { | 165 { |
166 char *p; | 166 char *p; |
167 cmd *curcmd; | 167 cmd *curcmd; |
168 | 168 |
169 if (*line != '/') { | 169 if (*line == 0 || *line != '/') { |
170 send_message(line); // FIXME: are we talking to a _buddy_? | 170 scr_set_chatmode(TRUE); |
171 if (current_buddy) { | |
172 buddy_setflags(BUDDATA(current_buddy), ROSTER_FLAG_LOCK, TRUE); | |
173 | |
174 if (!*line) | |
175 scr_ShowBuddyWindow(); | |
176 else | |
177 send_message(line); // FIXME: are we talking to a _buddy_? | |
178 } | |
171 return 0; | 179 return 0; |
172 } | 180 } |
173 | 181 |
174 /* It is a command */ | 182 /* It is a command */ |
175 // Remove trailing spaces: | 183 // Remove trailing spaces: |