- Timestamp:
- 2007-08-20T20:58:45Z (17 years ago)
- Branches:
- master
- Children:
- 7e4f0ca1
- Parents:
- a60c3c2
- Location:
- skype
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
skype/README
ra60c3c2 r6627d92 87 87 - Marking received messages as seen so that Skype won't say there are unread messages 88 88 89 - Adding / removing contacts 90 89 91 == What needs to be done (aka. TODO) 90 92 91 - add/remove users,detect when somebody wants to add us93 - detect when somebody wants to add us 92 94 93 95 - Due to some API limitations, I have no idea how to change status. This affects: -
skype/skype.c
ra60c3c2 r6627d92 109 109 ptr = strchr(++user, ' '); 110 110 *ptr = '\0'; 111 if(strcmp(user, sd->username) != 0 && strcmp(user, "echo123") != 0) 111 ptr++; 112 if(!strncmp(ptr, "ONLINESTATUS ", 13) && strcmp(user, sd->username) != 0 && strcmp(user, "echo123") != 0) 112 113 { 113 114 ptr = g_strdup_printf("%s@skype.com", user); … … 275 276 static void skype_add_buddy( struct im_connection *ic, char *who, char *group ) 276 277 { 278 char *buf, *nick, *ptr; 279 280 nick = g_strdup_printf("%s", who); 281 ptr = strchr(nick, '@'); 282 if(ptr) 283 *ptr = '\0'; 284 buf = g_strdup_printf("SET USER %s BUDDYSTATUS 2 Please authorize me\n", nick); 285 skype_write( ic, buf, strlen( buf ) ); 286 printf("add '%s'\n", nick); 287 g_free(nick); 277 288 } 278 289 279 290 static void skype_remove_buddy( struct im_connection *ic, char *who, char *group ) 280 291 { 292 char *buf, *nick, *ptr; 293 294 nick = g_strdup_printf("%s", who); 295 ptr = strchr(nick, '@'); 296 if(ptr) 297 *ptr = '\0'; 298 buf = g_strdup_printf("SET USER %s BUDDYSTATUS 1\n", nick); 299 skype_write( ic, buf, strlen( buf ) ); 300 printf("remove '%s'\n", nick); 301 g_free(nick); 281 302 } 282 303
Note: See TracChangeset
for help on using the changeset viewer.