Changeset 760319d
- Timestamp:
- 2007-10-07T01:55:46Z (17 years ago)
- Branches:
- master
- Children:
- d6a371e
- Parents:
- 86f2683
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
skype/skype.c
r86f2683 r760319d 465 465 imcb_chat_add_buddy(gc, sd->username); 466 466 g_strfreev(members); 467 gc->data = (void*)TRUE;468 467 } 469 468 } … … 640 639 skype_write( ic, buf, strlen( buf ) ); 641 640 g_free(buf); 641 gc->data = (void*)TRUE; 642 } 643 644 void skype_chat_invite(struct groupchat *gc, char *who, char *message) 645 { 646 struct im_connection *ic = gc->ic; 647 char *buf, *ptr, *nick; 648 nick = g_strdup(message); 649 ptr = strchr(nick, '@'); 650 if(ptr) 651 *ptr = '\0'; 652 buf = g_strdup_printf("ALTER CHAT %s ADDMEMBERS %s\n", gc->title, nick); 653 skype_write( ic, buf, strlen( buf ) ); 654 g_free(buf); 655 g_free(nick); 642 656 } 643 657 … … 657 671 ret->chat_msg = skype_chat_msg; 658 672 ret->chat_leave = skype_chat_leave; 673 ret->chat_invite = skype_chat_invite; 659 674 ret->handle_cmp = g_strcasecmp; 660 675 register_protocol( ret );
Note: See TracChangeset
for help on using the changeset viewer.