- Timestamp:
- 2007-08-20T17:25:32Z (17 years ago)
- Branches:
- master
- Children:
- 218ffbd
- Parents:
- 39a0d64
- Location:
- skype
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
skype/README
r39a0d64 ra3d6427 80 80 == What needs to be done (aka. TODO) 81 81 82 - we can't ourselves join to &bitlbee (ignore such a message from skype)83 84 82 - mark received messages as read so that skype won't say there are unread messages 85 83 -
skype/skype.c
r39a0d64 ra3d6427 15 15 { 16 16 struct im_connection *ic; 17 char *username; 17 18 int fd; 18 19 char *txq; … … 108 109 ptr = strchr(++user, ' '); 109 110 *ptr = '\0'; 110 ptr = g_strdup_printf("%s@skype.com", user); 111 imcb_add_buddy(ic, ptr, NULL); 112 if(strcmp(status, "OFFLINE") != 0) 113 flags |= OPT_LOGGED_IN; 114 if(strcmp(status, "ONLINE") != 0 && strcmp(status, "SKYPEME") != 0) 115 flags |= OPT_AWAY; 116 imcb_buddy_status(ic, ptr, flags, NULL, NULL); 117 g_free(ptr); 111 if(strcmp(user, sd->username) != 0) 112 { 113 ptr = g_strdup_printf("%s@skype.com", user); 114 imcb_add_buddy(ic, ptr, NULL); 115 if(strcmp(status, "OFFLINE") != 0) 116 flags |= OPT_LOGGED_IN; 117 if(strcmp(status, "ONLINE") != 0 && strcmp(status, "SKYPEME") != 0) 118 flags |= OPT_AWAY; 119 imcb_buddy_status(ic, ptr, flags, NULL, NULL); 120 g_free(ptr); 121 } 118 122 } 119 123 else if(!strncmp(line, "CHATMESSAGE ", 12)) … … 221 225 imcb_buddy_status(ic, "test@skype.com", OPT_LOGGED_IN, NULL, NULL); 222 226 imcb_buddy_msg(ic, "test@skype.com", "test from skype plugin", 0, 0);*/ 227 sd->username = g_strdup( acc->user ); 223 228 224 229 sd->ic = ic; … … 228 233 { 229 234 struct skype_data *sd = ic->proto_data; 235 g_free(sd->username); 230 236 g_free(sd); 231 237 }
Note: See TracChangeset
for help on using the changeset viewer.