- Timestamp:
- 2007-10-06T16:05:44Z (17 years ago)
- Branches:
- master
- Children:
- 72aa7f0
- Parents:
- a75f2a7
- Location:
- skype
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
skype/README
ra75f2a7 r2d07803 184 184 - Detect when somebody wants to transfer a file 185 185 186 - Handle topic changes 187 186 188 == What needs to be done (aka. TODO) 187 189 … … 191 193 192 194 * Send / receive group chat messages. 193 194 * Handle topic changes.195 195 196 196 - Add a question callback for calls. -
skype/skype.c
ra75f2a7 r2d07803 70 70 /* Same for file transfers. */ 71 71 skype_filetransfer_status filetransfer_status; 72 /* True if the next message will be a topic */ 73 int topic; 72 74 }; 73 75 … … 293 295 { 294 296 /* New body, we have everything to use imcb_buddy_msg() now! */ 295 imcb_buddy_msg(ic, sd->handle, info, 0, 0); 297 if(sd->topic) 298 { 299 imcb_log(ic, "%s has changed the chat topic to \"%s\"", sd->handle, info); 300 sd->topic = 0; 301 } 302 else 303 imcb_buddy_msg(ic, sd->handle, info, 0, 0); 296 304 } 297 305 } … … 374 382 } 375 383 } 384 else if(!strncmp(line, "CHAT ", 5)) 385 { 386 char *id = strchr(line, ' '); 387 if(++id) 388 { 389 char *info = strchr(id, ' '); 390 *info = '\0'; 391 info++; 392 if(!strncmp(info, "TOPIC ", 6)) 393 sd->topic = 1; 394 } 395 } 376 396 lineptr++; 377 397 }
Note: See TracChangeset
for help on using the changeset viewer.