Mercurial > pidgin
comparison libpurple/protocols/qq/qq_process.c @ 24159:9be95f0b9472
2008.10.10 - ccpaging <ccpaging(at)gmail.com>
* Keep group_search.c/h for later use
* Update 'group'
author | SHiNE CsyFeK <csyfek@gmail.com> |
---|---|
date | Tue, 28 Oct 2008 16:40:56 +0000 |
parents | 1ee91ff0d5fe |
children | d35672443baa |
comparison
equal
deleted
inserted
replaced
24158:b6f09c1c79ce | 24159:9be95f0b9472 |
---|---|
309 break; | 309 break; |
310 case QQ_MSG_UNKNOWN_QUN_IM: | 310 case QQ_MSG_UNKNOWN_QUN_IM: |
311 case QQ_MSG_TEMP_QUN_IM: | 311 case QQ_MSG_TEMP_QUN_IM: |
312 case QQ_MSG_QUN_IM: | 312 case QQ_MSG_QUN_IM: |
313 purple_debug_info("QQ", "MSG from room [%d]\n", header.uid_from); | 313 purple_debug_info("QQ", "MSG from room [%d]\n", header.uid_from); |
314 qq_process_room_msg_normal(data + bytes, data_len - bytes, header.uid_from, gc, header.msg_type); | 314 qq_process_room_im(data + bytes, data_len - bytes, header.uid_from, gc, header.msg_type); |
315 break; | 315 break; |
316 case QQ_MSG_ADD_TO_QUN: | 316 case QQ_MSG_ADD_TO_QUN: |
317 purple_debug_info("QQ", "Notice from [%d], Added\n", header.uid_from); | 317 purple_debug_info("QQ", "Notice from [%d], Added\n", header.uid_from); |
318 /* uid_from is group id | 318 /* uid_from is group id |
319 * we need this to create a dummy group and add to blist */ | 319 * we need this to create a dummy group and add to blist */ |
320 qq_process_room_msg_been_added(data + bytes, data_len - bytes, header.uid_from, gc); | 320 qq_process_room_buddy_joined(data + bytes, data_len - bytes, header.uid_from, gc); |
321 break; | 321 break; |
322 case QQ_MSG_DEL_FROM_QUN: | 322 case QQ_MSG_DEL_FROM_QUN: |
323 purple_debug_info("QQ", "Notice from room [%d], Removed\n", header.uid_from); | 323 purple_debug_info("QQ", "Notice from room [%d], Removed\n", header.uid_from); |
324 /* uid_from is group id */ | 324 /* uid_from is group id */ |
325 qq_process_room_msg_been_removed(data + bytes, data_len - bytes, header.uid_from, gc); | 325 qq_process_room_buddy_removed(data + bytes, data_len - bytes, header.uid_from, gc); |
326 break; | 326 break; |
327 case QQ_MSG_APPLY_ADD_TO_QUN: | 327 case QQ_MSG_APPLY_ADD_TO_QUN: |
328 purple_debug_info("QQ", "Notice from room [%d], Joined\n", header.uid_from); | 328 purple_debug_info("QQ", "Notice from room [%d], Joined\n", header.uid_from); |
329 /* uid_from is group id */ | 329 /* uid_from is group id */ |
330 qq_process_room_msg_apply_join(data + bytes, data_len - bytes, header.uid_from, gc); | 330 qq_process_room_buddy_request_join(data + bytes, data_len - bytes, header.uid_from, gc); |
331 break; | 331 break; |
332 case QQ_MSG_APPROVE_APPLY_ADD_TO_QUN: | 332 case QQ_MSG_APPROVE_APPLY_ADD_TO_QUN: |
333 purple_debug_info("QQ", "Notice from room [%d], Confirm add in\n", | 333 purple_debug_info("QQ", "Notice from room [%d], Confirm add in\n", |
334 header.uid_from); | 334 header.uid_from); |
335 /* uid_from is group id */ | 335 /* uid_from is group id */ |
336 qq_process_room_msg_been_approved(data + bytes, data_len - bytes, header.uid_from, gc); | 336 qq_process_room_buddy_approved(data + bytes, data_len - bytes, header.uid_from, gc); |
337 break; | 337 break; |
338 case QQ_MSG_REJCT_APPLY_ADD_TO_QUN: | 338 case QQ_MSG_REJCT_APPLY_ADD_TO_QUN: |
339 purple_debug_info("QQ", "Notice from room [%d], Refuse add in\n", | 339 purple_debug_info("QQ", "Notice from room [%d], Refuse add in\n", |
340 header.uid_from); | 340 header.uid_from); |
341 /* uid_from is group id */ | 341 /* uid_from is group id */ |
342 qq_process_room_msg_been_rejected(data + bytes, data_len - bytes, header.uid_from, gc); | 342 qq_process_room_buddy_rejected(data + bytes, data_len - bytes, header.uid_from, gc); |
343 break; | 343 break; |
344 case QQ_MSG_SYS_30: | 344 case QQ_MSG_SYS_30: |
345 do_msg_sys_30(gc, data + bytes, data_len - bytes); | 345 do_msg_sys_30(gc, data + bytes, data_len - bytes); |
346 break; | 346 break; |
347 case QQ_MSG_SYS_4C: | 347 case QQ_MSG_SYS_4C: |
800 break; | 800 break; |
801 case QQ_ROOM_CMD_QUIT: | 801 case QQ_ROOM_CMD_QUIT: |
802 qq_process_group_cmd_exit_group(data + bytes, data_len - bytes, gc); | 802 qq_process_group_cmd_exit_group(data + bytes, data_len - bytes, gc); |
803 break; | 803 break; |
804 case QQ_ROOM_CMD_SEND_MSG: | 804 case QQ_ROOM_CMD_SEND_MSG: |
805 qq_process_group_cmd_im(data + bytes, data_len - bytes, gc); | 805 qq_process_room_send_im(gc, data + bytes, data_len - bytes); |
806 break; | 806 break; |
807 case QQ_ROOM_CMD_GET_ONLINES: | 807 case QQ_ROOM_CMD_GET_ONLINES: |
808 qq_process_room_cmd_get_onlines(data + bytes, data_len - bytes, gc); | 808 qq_process_room_cmd_get_onlines(data + bytes, data_len - bytes, gc); |
809 break; | 809 break; |
810 case QQ_ROOM_CMD_GET_BUDDIES: | 810 case QQ_ROOM_CMD_GET_BUDDIES: |