Mercurial > pidgin.yaz
comparison src/protocols/jabber/presence.c @ 7321:c41e522028f2
[gaim-migrate @ 7907]
and an error message about joining a chat, when you've been in that chat all day is pretty dumb.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Thu, 23 Oct 2003 21:56:16 +0000 |
parents | 578f3ae5a8c0 |
children | ab828b8c3f22 |
comparison
equal
deleted
inserted
replaced
7320:578f3ae5a8c0 | 7321:c41e522028f2 |
---|---|
252 text = xmlnode_get_data(error); | 252 text = xmlnode_get_data(error); |
253 } | 253 } |
254 | 254 |
255 if(!code) | 255 if(!code) |
256 code = ""; | 256 code = ""; |
257 if(!text) | 257 |
258 text = g_strdup(_("Unable to join chat")); | 258 if(chat->conv) { |
259 | 259 if(!text) |
260 buf = g_strdup_printf("Error %s joining chat %s: %s", | 260 text = g_strdup(_("Unknown error")); |
261 code, from, text); | 261 buf = g_strdup_printf("Error %s in chat %s: %s", |
262 code, from, text); | |
263 serv_got_chat_left(js->gc, chat->id); | |
264 } else { | |
265 if(!text) | |
266 text = g_strdup(_("Unable to join chat")); | |
267 buf = g_strdup_printf("Error %s joining chat %s: %s", | |
268 code, from, text); | |
269 } | |
262 gaim_notify_error(js->gc, _("Error"), _("Error"), buf); | 270 gaim_notify_error(js->gc, _("Error"), _("Error"), buf); |
263 g_free(text); | 271 g_free(text); |
264 g_free(buf); | 272 g_free(buf); |
265 | |
266 if(chat->conv) | |
267 serv_got_chat_left(js->gc, chat->id); | |
268 | 273 |
269 jabber_chat_destroy(chat); | 274 jabber_chat_destroy(chat); |
270 jabber_id_free(jid); | 275 jabber_id_free(jid); |
271 return; | 276 return; |
272 } | 277 } |