Changeset a5f76a2
- Timestamp:
- 2007-11-20T09:46:35Z (17 years ago)
- Branches:
- master
- Children:
- de2f05e
- Parents:
- 9fcaedc0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
skype/skype.c
r9fcaedc0 ra5f76a2 79 79 /* The user who invited us to the chat. */ 80 80 char* adder; 81 /* If we are waiting for a confirmation about we changed the topic. */ 82 int topic_wait; 81 83 }; 82 84 … … 489 491 info += 6; 490 492 struct groupchat *gc = skype_chat_by_name(ic, id); 491 if(gc && sd->adder)493 if(gc && (sd->adder || sd->topic_wait)) 492 494 { 493 imcb_chat_topic(gc, sd->adder, info); 495 if(sd->topic_wait) 496 { 497 sd->adder = g_strdup(sd->username); 498 sd->topic_wait = 0; 499 } 500 imcb_chat_topic(gc, sd->adder, info, 0); 494 501 g_free(sd->adder); 495 502 sd->adder = NULL; … … 712 719 { 713 720 struct im_connection *ic = gc->ic; 721 struct skype_data *sd = ic->proto_data; 714 722 char *buf; 715 723 buf = g_strdup_printf("ALTER CHAT %s SETTOPIC %s\n", gc->title, message); 716 724 skype_write( ic, buf, strlen( buf ) ); 717 725 g_free(buf); 726 sd->topic_wait = 1; 718 727 } 719 728
Note: See TracChangeset
for help on using the changeset viewer.