summaryrefslogtreecommitdiff
path: root/vchat-protocol.c
diff options
context:
space:
mode:
authorerdgeist <>2003-08-14 11:28:48 +0000
committererdgeist <>2003-08-14 11:28:48 +0000
commit12a82a3daf3cd010f473d82b2fcd03c99435c58f (patch)
tree54eeef8ba4df8de152dc060b0e6e2d853ef44271 /vchat-protocol.c
parentb8b51815544c2a0ad7a294b4c901594378dc3b98 (diff)
Public thoughts
Diffstat (limited to 'vchat-protocol.c')
-rwxr-xr-xvchat-protocol.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/vchat-protocol.c b/vchat-protocol.c
index d04d9b0..5113365 100755
--- a/vchat-protocol.c
+++ b/vchat-protocol.c
@@ -61,6 +61,7 @@ static void login (unsigned char *message);
61static void anonlogin (unsigned char *message); 61static void anonlogin (unsigned char *message);
62static void topicinfo (unsigned char *message); 62static void topicinfo (unsigned char *message);
63static void pubaction (unsigned char *message); 63static void pubaction (unsigned char *message);
64static void pubthoughts (unsigned char *message);
64static void idleprompt (unsigned char *message); 65static void idleprompt (unsigned char *message);
65static void topicchange (unsigned char *message); 66static void topicchange (unsigned char *message);
66static void pmnotsent (unsigned char *message); 67static void pmnotsent (unsigned char *message);
@@ -387,6 +388,26 @@ pubaction (unsigned char *message)
387 writechan (tmpstr); 388 writechan (tmpstr);
388} 389}
389 390
391/* parse and handle an thought string
392 * format: 124 %s %s
393 * vars: %s nick
394 * %s thought */
395static void
396pubthoughts (unsigned char *message)
397{
398 unsigned char *nick = NULL, *thoughts = NULL;
399 nick = strchr (message, ' ');
400 nick[0] = '\0';
401 nick++;
402
403 thoughts = strchr (nick, ' ');
404 thoughts[0] = '\0';
405 thoughts++;
406
407 snprintf(tmpstr,TMPSTRSIZE,getformatstr(FS_PUBTHOUGHT),nick,thoughts);
408 writechan (tmpstr);
409}
410
390/* parse and handle an idle message 411/* parse and handle an idle message
391 * format: 305 412 * format: 305
392 * vars: %s message */ 413 * vars: %s message */