Changeset f8674db
- Timestamp:
- 2007-10-17T00:46:38Z (17 years ago)
- Branches:
- master
- Children:
- a7af5f0
- Parents:
- 09e2a69
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
skype/skype.c
r09e2a69 rf8674db 76 76 * not (default). */ 77 77 char* groupchat_with; 78 /* The user who invited us to the chat. */ 79 char* adder; 78 80 }; 79 81 … … 438 440 { 439 441 imcb_chat_new( ic, id ); 442 g_snprintf(buf, 1024, "GET CHAT %s ADDER\n", id); 443 skype_write(ic, buf, strlen(buf)); 444 g_snprintf(buf, 1024, "GET CHAT %s TOPIC\n", id); 445 skype_write(ic, buf, strlen(buf)); 440 446 } 441 447 else if(!strcmp(info, "STATUS DIALOG") && sd->groupchat_with) … … 455 461 g_free(sd->groupchat_with); 456 462 sd->groupchat_with = NULL; 463 g_snprintf(buf, 1024, "GET CHAT %s ADDER\n", id); 464 skype_write(ic, buf, strlen(buf)); 465 g_snprintf(buf, 1024, "GET CHAT %s TOPIC\n", id); 466 skype_write(ic, buf, strlen(buf)); 457 467 } 458 468 else if(!strcmp(info, "STATUS UNSUBSCRIBED")) … … 462 472 gc->data = (void*)FALSE; 463 473 } 474 else if(!strncmp(info, "ADDER ", 6)) 475 { 476 info += 6; 477 g_free(sd->adder); 478 sd->adder = g_strdup_printf("%s@skype.com", info); 479 } 464 480 else if(!strncmp(info, "TOPIC ", 6)) 465 481 { 466 482 info += 6; 467 483 struct groupchat *gc = skype_chat_by_name(ic, id); 468 if(gc) 469 imcb_chat_topic(gc, NULL, info); 484 if(gc && sd->adder) 485 { 486 imcb_chat_topic(gc, sd->adder, info); 487 g_free(sd->adder); 488 sd->adder = NULL; 489 } 470 490 } 471 491 else if(!strncmp(info, "ACTIVEMEMBERS ", 14))
Note: See TracChangeset
for help on using the changeset viewer.