Mercurial > pidgin.yaz
comparison libpurple/protocols/qq/buddy_opt.c @ 23756:1a0caf9983fa
applied changes from 92d52eef2994d2697999177804e3665989cfa352
through 5688199e261449d33b5803dafff50d860896ebcb
Reapplied 5688199e261449d33b5803dafff50d860896ebcb.
2008.09.04 - ccpaging <ccpaging(at)gmail.com>
* minor code cleaned
committer: Daniel Atallah <daniel.atallah@gmail.com>
author | SHiNE CsyFeK <csyfek@gmail.com> |
---|---|
date | Mon, 15 Sep 2008 03:02:06 +0000 |
parents | 967344bc404d |
children | b67eb6f3f026 |
comparison
equal
deleted
inserted
replaced
23755:23cec4360d4a | 23756:1a0caf9983fa |
---|---|
280 qd = (qq_data *) gc->proto_data; | 280 qd = (qq_data *) gc->proto_data; |
281 | 281 |
282 if (data[0] != QQ_REMOVE_BUDDY_REPLY_OK) { | 282 if (data[0] != QQ_REMOVE_BUDDY_REPLY_OK) { |
283 /* there is no reason return from server */ | 283 /* there is no reason return from server */ |
284 purple_debug_warning("QQ", "Remove buddy fails\n"); | 284 purple_debug_warning("QQ", "Remove buddy fails\n"); |
285 purple_notify_info(gc, _("QQ Buddy"), _("Failed:"), _("Remove buddy")); | |
285 } else { /* if reply */ | 286 } else { /* if reply */ |
286 purple_debug_info("QQ", "Remove buddy OK\n"); | 287 purple_debug_info("QQ", "Remove buddy OK\n"); |
287 /* TODO: We don't really need to notify the user about this, do we? */ | 288 /* TODO: We don't really need to notify the user about this, do we? */ |
288 purple_notify_info(gc, NULL, _("You have successfully removed a buddy"), NULL); | 289 purple_notify_info(gc, _("QQ Buddy"), _("Successed:"), _("Remove buddy")); |
289 } | 290 } |
290 } | 291 } |
291 | 292 |
292 /* process the server reply for my request to remove myself from a buddy */ | 293 /* process the server reply for my request to remove myself from a buddy */ |
293 void qq_process_remove_self_reply(guint8 *data, gint data_len, PurpleConnection *gc) | 294 void qq_process_remove_self_reply(guint8 *data, gint data_len, PurpleConnection *gc) |
299 qd = (qq_data *) gc->proto_data; | 300 qd = (qq_data *) gc->proto_data; |
300 | 301 |
301 if (data[0] != QQ_REMOVE_SELF_REPLY_OK) { | 302 if (data[0] != QQ_REMOVE_SELF_REPLY_OK) { |
302 /* there is no reason return from server */ | 303 /* there is no reason return from server */ |
303 purple_debug_warning("QQ", "Remove self fails\n"); | 304 purple_debug_warning("QQ", "Remove self fails\n"); |
304 purple_notify_info(gc, NULL, _("Failed removing from friend's buddy list"), NULL); | 305 purple_notify_info(gc, _("QQ Buddy"), _("Failed:"), _("Remove from other's buddy list")); |
305 } else { /* if reply */ | 306 } else { /* if reply */ |
306 purple_debug_info("QQ", "Remove from a buddy OK\n"); | 307 purple_debug_info("QQ", "Remove from a buddy OK\n"); |
307 /* TODO: Does the user really need to be notified about this? */ | 308 /* TODO: Does the user really need to be notified about this? */ |
308 purple_notify_info(gc, NULL, _("Successed removing from friend's buddy list"), NULL); | 309 purple_notify_info(gc, _("QQ Buddy"), _("Successed:"), _("Remove from other's buddy list")); |
309 } | 310 } |
310 } | 311 } |
311 | 312 |
312 void qq_process_add_buddy_reply(guint8 *data, gint data_len, guint16 seq, PurpleConnection *gc) | 313 void qq_process_add_buddy_reply(guint8 *data, gint data_len, guint16 seq, PurpleConnection *gc) |
313 { | 314 { |
376 g); | 377 g); |
377 g_free(msg); | 378 g_free(msg); |
378 g_free(nombre); | 379 g_free(nombre); |
379 } else { /* add OK */ | 380 } else { /* add OK */ |
380 qq_add_buddy_by_recv_packet(gc, for_uid, TRUE, TRUE); | 381 qq_add_buddy_by_recv_packet(gc, for_uid, TRUE, TRUE); |
381 msg = g_strdup_printf(_("You have added %d to buddy list"), for_uid); | 382 msg = g_strdup_printf(_("Add into %d's buddy list"), for_uid); |
382 purple_notify_info(gc, NULL, msg, NULL); | 383 purple_notify_info(gc, _("QQ Buddy"), _("Successed:"), msg); |
383 g_free(msg); | 384 g_free(msg); |
384 } | 385 } |
385 g_strfreev(segments); | 386 g_strfreev(segments); |
386 } | 387 } |
387 | 388 |