comparison finch/gntconn.c @ 21627:9f7590a24b9b

Show a helpful message about account disconnect. Someone should come up with a better string.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 26 Nov 2007 05:19:07 +0000
parents dccfd999ffe7
children 2b426862ffbf
comparison
equal deleted inserted replaced
21626:4c03275346a9 21627:9f7590a24b9b
150 list = list->next; 150 list = list->next;
151 if (conv->account != account || 151 if (conv->account != account ||
152 purple_conv_chat_has_left(PURPLE_CONV_CHAT(conv))) 152 purple_conv_chat_has_left(PURPLE_CONV_CHAT(conv)))
153 continue; 153 continue;
154 purple_conversation_set_data(conv, "want-to-rejoin", GINT_TO_POINTER(TRUE)); 154 purple_conversation_set_data(conv, "want-to-rejoin", GINT_TO_POINTER(TRUE));
155 purple_conversation_write(conv, NULL, _("The account has disconnected and you are no "
156 "longer in this chat. You will be automatically rejoined in the chat when "
157 "the account reconnects."),
158 PURPLE_MESSAGE_SYSTEM, time(NULL));
155 } 159 }
156 } 160 }
157 161
158 static void 162 static void
159 account_removed_cb(PurpleAccount *account, gpointer user_data) 163 account_removed_cb(PurpleAccount *account, gpointer user_data)