Mercurial > pidgin.yaz
comparison libpurple/protocols/qq/qq.c @ 18712:c65c4caa817a
When we get a presence of type="error" from the server that
corresponds to a Jabber chat, only destroy/free/close/leave
the chat room if the error happened while joining (and we
were therefore never in the room).
This fixes the following bug:
1. Join a room
2. Try to change your nickname to something that's being
used by someone else
3. The server gives you an error message, but you're not
actually kicked out of the room
4. Pidgin thinks you've been kicked out and won't let you
send messages to the room, etc.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 29 Jul 2007 07:01:13 +0000 |
parents | a338acd14365 |
children | bf8b69cba9ae |
comparison
equal
deleted
inserted
replaced
18711:259f8635eeff | 18712:c65c4caa817a |
---|---|
745 | 745 |
746 static void init_plugin(PurplePlugin *plugin) | 746 static void init_plugin(PurplePlugin *plugin) |
747 { | 747 { |
748 PurpleAccountOption *option; | 748 PurpleAccountOption *option; |
749 | 749 |
750 option = purple_account_option_bool_new(_("Login in TCP"), "use_tcp", FALSE); | 750 option = purple_account_option_bool_new(_("Connect using TCP"), "use_tcp", FALSE); |
751 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); | |
752 | |
753 option = purple_account_option_bool_new(_("Login Hidden"), "hidden", FALSE); | |
754 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); | 751 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
755 | 752 |
756 option = purple_account_option_string_new(_("Server"), "server", NULL); | 753 option = purple_account_option_string_new(_("Server"), "server", NULL); |
757 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); | 754 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
758 | 755 |