From 12a82a3daf3cd010f473d82b2fcd03c99435c58f Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Thu, 14 Aug 2003 11:28:48 +0000 Subject: Public thoughts --- vchat-commands.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'vchat-commands.c') 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) case 'm': /* sending a private message? */ privatemessagetx( line+2 ); break; - case 'a': + case 'a': /* Do an action */ doaction( line+2 ); break; case '.': @@ -206,11 +206,23 @@ handleline (unsigned char *line) showout( ); } break; + case 'o': + /* We do think something, the ugly way :) */ + snprintf (tmpstr, TMPSTRSIZE, getformatstr(FS_TXPUBTHOUGHT), line); + writechan (tmpstr); + networkoutput (line); + break; + case 'O': + /* We do think something, the nice way :) */ + snprintf (tmpstr, TMPSTRSIZE, getformatstr(FS_TXPUBNTHOUGHT), line); + writechan (tmpstr); + networkoutput (line); + break; default: /* generic server command, send to server, show to user */ snprintf (tmpstr, TMPSTRSIZE, getformatstr(FS_COMMAND), line); - networkoutput (line); writechan (tmpstr); + networkoutput (line); break; } break; -- cgit v1.2.3