Changeset be975f8
- Timestamp:
- 2007-08-19T15:50:22Z (17 years ago)
- Branches:
- master
- Children:
- b6d26ac
- Parents:
- 9fd4241
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
skype/skype.c
r9fd4241 rbe975f8 82 82 else if(!strncmp(line, "USER ", 5)) 83 83 { 84 // TODO we should add the buddy even if the status is offline85 if((ptr = strrchr(line, ' ')) && strcmp(++ptr, "OFFLINE") != 0)86 {87 char *user = strchr(line, ' ');88 ptr = strchr(++user, ' ');89 *ptr = '\0';90 ptr = g_strdup_printf("%s@skype.com", user);91 imcb_add_buddy(ic, ptr, NULL);84 char *status = strrchr(line, ' '); 85 char *user = strchr(line, ' '); 86 ptr = strchr(++user, ' '); 87 *ptr = '\0'; 88 ptr = g_strdup_printf("%s@skype.com", user); 89 imcb_add_buddy(ic, ptr, NULL); 90 // TODO online can be away 91 if(strcmp(++status, "OFFLINE") != 0) 92 92 imcb_buddy_status(ic, ptr, OPT_LOGGED_IN, NULL, NULL); 93 }93 g_free(ptr); 94 94 } 95 95 lineptr++;
Note: See TracChangeset
for help on using the changeset viewer.