Mercurial > pidgin
comparison src/toc.c @ 964:2cd7b73e2c9a
[gaim-migrate @ 974]
damn i'm smooth. chat is working now. :)
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Tue, 10 Oct 2000 10:04:59 +0000 |
| parents | fa681641643d |
| children | f7886476f9d9 |
comparison
equal
deleted
inserted
replaced
| 963:c1fb7afe4fd7 | 964:2cd7b73e2c9a |
|---|---|
| 37 #include <sys/socket.h> | 37 #include <sys/socket.h> |
| 38 #include "multi.h" | 38 #include "multi.h" |
| 39 #include "gaim.h" | 39 #include "gaim.h" |
| 40 #include "gnome_applet_mgr.h" | 40 #include "gnome_applet_mgr.h" |
| 41 | 41 |
| 42 #define REVISION "gaim:$Revision: 970 $" | 42 #define REVISION "gaim:$Revision: 974 $" |
| 43 | 43 |
| 44 | 44 |
| 45 static unsigned int peer_ver=0; | 45 static unsigned int peer_ver=0; |
| 46 #ifdef _WIN32 | 46 #ifdef _WIN32 |
| 47 static int win32_r; | 47 static int win32_r; |
| 495 int id; | 495 int id; |
| 496 | 496 |
| 497 | 497 |
| 498 sscanf(strtok(NULL, ":"), "%d", &id); | 498 sscanf(strtok(NULL, ":"), "%d", &id); |
| 499 name = strtok(NULL, ":"); | 499 name = strtok(NULL, ":"); |
| 500 serv_got_joined_chat(id, name); | 500 serv_got_joined_chat(gc, id, name); |
| 501 | 501 |
| 502 } else if (!strcasecmp(c, "DIR_STATUS")) { | 502 } else if (!strcasecmp(c, "DIR_STATUS")) { |
| 503 } else if (!strcasecmp(c, "ADMIN_PASSWD_STATUS")) { | 503 } else if (!strcasecmp(c, "ADMIN_PASSWD_STATUS")) { |
| 504 do_error_dialog("Password Change Successeful", "Gaim - Password Change"); | 504 do_error_dialog("Password Change Successeful", "Gaim - Password Change"); |
| 505 } else if (!strcasecmp(c, "CHAT_UPDATE_BUDDY")) { | 505 } else if (!strcasecmp(c, "CHAT_UPDATE_BUDDY")) { |
| 506 int id; | 506 int id; |
| 507 char *in; | 507 char *in; |
| 508 char *buddy; | 508 char *buddy; |
| 509 GList *bcs = buddy_chats; | 509 GSList *bcs = gc->buddy_chats; |
| 510 struct conversation *b = NULL; | 510 struct conversation *b = NULL; |
| 511 | 511 |
| 512 sscanf(strtok(NULL, ":"), "%d", &id); | 512 sscanf(strtok(NULL, ":"), "%d", &id); |
| 513 | 513 |
| 514 in = strtok(NULL, ":"); | 514 in = strtok(NULL, ":"); |
| 541 int id; | 541 int id; |
| 542 | 542 |
| 543 | 543 |
| 544 sscanf(strtok(NULL, ":"), "%d", &id); | 544 sscanf(strtok(NULL, ":"), "%d", &id); |
| 545 | 545 |
| 546 serv_got_chat_left(id); | 546 serv_got_chat_left(gc, id); |
| 547 | 547 |
| 548 | 548 |
| 549 } else if (!strcasecmp(c, "CHAT_IN")) { | 549 } else if (!strcasecmp(c, "CHAT_IN")) { |
| 550 | 550 |
| 551 int id, w; | 551 int id, w; |
| 563 if (!strcasecmp(whisper, "T")) | 563 if (!strcasecmp(whisper, "T")) |
| 564 w = 1; | 564 w = 1; |
| 565 else | 565 else |
| 566 w = 0; | 566 w = 0; |
| 567 | 567 |
| 568 serv_got_chat_in(id, who, w, m); | 568 serv_got_chat_in(gc, id, who, w, m); |
| 569 | 569 |
| 570 | 570 |
| 571 } else if (!strcasecmp(c, "CHAT_INVITE")) { | 571 } else if (!strcasecmp(c, "CHAT_INVITE")) { |
| 572 char *name; | 572 char *name; |
| 573 char *who; | 573 char *who; |
| 578 name = strtok(NULL, ":"); | 578 name = strtok(NULL, ":"); |
| 579 sscanf(strtok(NULL, ":"), "%d", &id); | 579 sscanf(strtok(NULL, ":"), "%d", &id); |
| 580 who = strtok(NULL, ":"); | 580 who = strtok(NULL, ":"); |
| 581 message = strtok(NULL, ":"); | 581 message = strtok(NULL, ":"); |
| 582 | 582 |
| 583 serv_got_chat_invite(name, id, who, message); | 583 serv_got_chat_invite(gc, name, id, who, message); |
| 584 | 584 |
| 585 | 585 |
| 586 } else if (!strcasecmp(c, "RVOUS_PROPOSE")) { | 586 } else if (!strcasecmp(c, "RVOUS_PROPOSE")) { |
| 587 char *user; | 587 char *user; |
| 588 char *uuid; | 588 char *uuid; |
