Changeset 72aa7f0
- Timestamp:
- 2007-10-06T19:20:12Z (17 years ago)
- Branches:
- master
- Children:
- 66c9558
- Parents:
- 2d07803
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
skype/skype.c
r2d07803 r72aa7f0 27 27 #include <poll.h> 28 28 #include <bitlbee.h> 29 #include <glib.h> 29 30 30 31 #define SKYPE_PORT_DEFAULT "2727" … … 170 171 } 171 172 173 struct groupchat *skype_chat_by_name( struct im_connection *ic, char *name ) 174 { 175 struct groupchat *ret; 176 177 for( ret = ic->conversations; ret; ret = ret->next ) 178 { 179 if(strcmp(name, ret->title ) == 0 ) 180 break; 181 } 182 183 return ret; 184 } 185 172 186 static gboolean skype_read_callback( gpointer data, gint fd, b_input_condition cond ) 173 187 { … … 392 406 if(!strncmp(info, "TOPIC ", 6)) 393 407 sd->topic = 1; 408 else if(!strcmp(info, "STATUS MULTI_SUBSCRIBED")) 409 { 410 struct groupchat *gc; 411 gc = imcb_chat_new( ic, id ); 412 } 413 else if(!strncmp(info, "ACTIVEMEMBERS ", 14)) 414 { 415 info += 14; 416 struct groupchat *gc = skype_chat_by_name(ic, id); 417 if(!gc) 418 gc = imcb_chat_new( ic, id ); 419 char **members = g_strsplit(info, " ", 0); 420 int i; 421 for(i=0;members[i];i++) 422 { 423 if(!strcmp(members[i], sd->username)) 424 continue; 425 g_snprintf(buf, 1024, "%s@skype.com", members[i]); 426 imcb_chat_add_buddy(gc, buf); 427 } 428 imcb_chat_add_buddy(gc, sd->username); 429 g_strfreev(members); 430 } 394 431 } 395 432 }
Note: See TracChangeset
for help on using the changeset viewer.