Mercurial > pidgin.yaz
diff libpurple/protocols/qq/group_join.c @ 24069:dc112387190f
2008.09.29 - ccpaging <ccpaging(at)gmail.com>
* 'Check Password' function for protocol 2007/2008
author | SHiNE CsyFeK <csyfek@gmail.com> |
---|---|
date | Wed, 22 Oct 2008 14:41:13 +0000 |
parents | dbc7a9742f8d |
children | 1bdf7b602684 |
line wrap: on
line diff
--- a/libpurple/protocols/qq/group_join.c Wed Oct 22 14:40:04 2008 +0000 +++ b/libpurple/protocols/qq/group_join.c Wed Oct 22 14:41:13 2008 +0000 @@ -39,6 +39,7 @@ #include "group_opt.h" #include "group_conv.h" #include "group_search.h" +#include "group_im.h" #include "qq_define.h" #include "packet_parse.h" #include "qq_network.h" @@ -226,6 +227,9 @@ gint bytes; guint32 id; qq_data *qd; + qq_group *group; + gchar *msg; + time_t now = time(NULL); g_return_if_fail(data != NULL && len > 0); qd = (qq_data *) gc->proto_data; @@ -239,7 +243,14 @@ bytes += qq_get32(&id, data + bytes); g_return_if_fail(id > 0); - qq_got_attention(gc, _("Successed join to Qun")); + group = qq_room_search_id(gc, id); + if (group != NULL) { + msg = g_strdup_printf(_("Successed join to Qun %s (%d)"), group->title_utf8, group->ext_id); + qq_room_got_chat_in(gc, group, 0, msg, now); + g_free(msg); + } else { + qq_got_attention(gc, _("Successed join to Qun")); + } } /* process group cmd reply "join group" */