Mercurial > pidgin
diff libpurple/protocols/jabber/presence.c @ 29870:5286451c3d44
jabber: Avoid an assertion failure for presence from bare domains
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Mon, 03 May 2010 05:02:30 +0000 |
parents | 21285007d703 |
children | 25e200cb3532 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/presence.c Sun May 02 21:31:23 2010 +0000 +++ b/libpurple/protocols/jabber/presence.c Mon May 03 05:02:30 2010 +0000 @@ -924,8 +924,9 @@ goto out; } - presence.chat = jabber_chat_find(js, presence.jid_from->node, - presence.jid_from->domain); + if (presence.jid_from->node) + presence.chat = jabber_chat_find(js, presence.jid_from->node, + presence.jid_from->domain); if(presence.jb->error_msg) { g_free(presence.jb->error_msg); presence.jb->error_msg = NULL;