Mercurial > pidgin.yaz
comparison src/toc.c @ 1112:3f56704a09bd
[gaim-migrate @ 1122]
You know, PROTOCOL *told* me not to do this, but i did it anyway.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 20 Nov 2000 20:32:17 +0000 |
parents | 5bc8fdacd2cb |
children | 4efa1ca61a2a |
comparison
equal
deleted
inserted
replaced
1111:870d7bb95fdc | 1112:3f56704a09bd |
---|---|
45 #include "pixmaps/aol_icon.xpm" | 45 #include "pixmaps/aol_icon.xpm" |
46 #include "pixmaps/away_icon.xpm" | 46 #include "pixmaps/away_icon.xpm" |
47 #include "pixmaps/dt_icon.xpm" | 47 #include "pixmaps/dt_icon.xpm" |
48 #include "pixmaps/free_icon.xpm" | 48 #include "pixmaps/free_icon.xpm" |
49 | 49 |
50 #define REVISION "gaim:$Revision: 1116 $" | 50 #define REVISION "gaim:$Revision: 1122 $" |
51 | 51 |
52 #define TYPE_SIGNON 1 | 52 #define TYPE_SIGNON 1 |
53 #define TYPE_DATA 2 | 53 #define TYPE_DATA 2 |
54 #define TYPE_ERROR 3 | 54 #define TYPE_ERROR 3 |
55 #define TYPE_SIGNOFF 4 | 55 #define TYPE_SIGNOFF 4 |
368 char *away, *message; | 368 char *away, *message; |
369 int a = 0; | 369 int a = 0; |
370 | 370 |
371 c = strtok(NULL, ":"); | 371 c = strtok(NULL, ":"); |
372 away = strtok(NULL, ":"); | 372 away = strtok(NULL, ":"); |
373 message = strtok(NULL, ":"); | 373 |
374 message = away; | |
375 while (*message && (*message != ':')) message++; | |
376 message++; | |
377 | |
374 a = (away && (*away == 'T')) ? 1 : 0; | 378 a = (away && (*away == 'T')) ? 1 : 0; |
375 | 379 |
376 serv_got_im(gc, c, message, a); | 380 serv_got_im(gc, c, message, a); |
377 } else if (!strcasecmp(c, "UPDATE_BUDDY")) { | 381 } else if (!strcasecmp(c, "UPDATE_BUDDY")) { |
378 char *l, *uc; | 382 char *l, *uc; |
432 char *m, *who, *whisper; | 436 char *m, *who, *whisper; |
433 | 437 |
434 sscanf(strtok(NULL, ":"), "%d", &id); | 438 sscanf(strtok(NULL, ":"), "%d", &id); |
435 who = strtok(NULL, ":"); | 439 who = strtok(NULL, ":"); |
436 whisper = strtok(NULL, ":"); | 440 whisper = strtok(NULL, ":"); |
437 m = strtok(NULL, ":"); | 441 m = whisper; |
442 while (*m && (*m != ':')) m++; | |
443 m++; | |
438 | 444 |
439 w = (whisper && (*whisper == 'T')) ? 1 : 0; | 445 w = (whisper && (*whisper == 'T')) ? 1 : 0; |
440 | 446 |
441 serv_got_chat_in(gc, id, who, w, m); | 447 serv_got_chat_in(gc, id, who, w, m); |
442 } else if (!strcasecmp(c, "CHAT_UPDATE_BUDDY")) { | 448 } else if (!strcasecmp(c, "CHAT_UPDATE_BUDDY")) { |