diff options
Diffstat (limited to 'vchat-commands.c')
-rwxr-xr-x | vchat-commands.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/vchat-commands.c b/vchat-commands.c index 6380a44..0d7cf96 100755 --- a/vchat-commands.c +++ b/vchat-commands.c | |||
@@ -189,7 +189,7 @@ handleline (unsigned char *line) | |||
189 | case 'm': /* sending a private message? */ | 189 | case 'm': /* sending a private message? */ |
190 | privatemessagetx( line+2 ); | 190 | privatemessagetx( line+2 ); |
191 | break; | 191 | break; |
192 | case 'a': | 192 | case 'a': /* Do an action */ |
193 | doaction( line+2 ); | 193 | doaction( line+2 ); |
194 | break; | 194 | break; |
195 | case '.': | 195 | case '.': |
@@ -206,11 +206,23 @@ handleline (unsigned char *line) | |||
206 | showout( ); | 206 | showout( ); |
207 | } | 207 | } |
208 | break; | 208 | break; |
209 | case 'o': | ||
210 | /* We do think something, the ugly way :) */ | ||
211 | snprintf (tmpstr, TMPSTRSIZE, getformatstr(FS_TXPUBTHOUGHT), line); | ||
212 | writechan (tmpstr); | ||
213 | networkoutput (line); | ||
214 | break; | ||
215 | case 'O': | ||
216 | /* We do think something, the nice way :) */ | ||
217 | snprintf (tmpstr, TMPSTRSIZE, getformatstr(FS_TXPUBNTHOUGHT), line); | ||
218 | writechan (tmpstr); | ||
219 | networkoutput (line); | ||
220 | break; | ||
209 | default: | 221 | default: |
210 | /* generic server command, send to server, show to user */ | 222 | /* generic server command, send to server, show to user */ |
211 | snprintf (tmpstr, TMPSTRSIZE, getformatstr(FS_COMMAND), line); | 223 | snprintf (tmpstr, TMPSTRSIZE, getformatstr(FS_COMMAND), line); |
212 | networkoutput (line); | ||
213 | writechan (tmpstr); | 224 | writechan (tmpstr); |
225 | networkoutput (line); | ||
214 | break; | 226 | break; |
215 | } | 227 | } |
216 | break; | 228 | break; |