changeset 6556:4c9e8867c45c

[gaim-migrate @ 7078] I seriously don't know why we would ever get presence updates for buddies not on our list, but apparently it happens. This makes it not blow up. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 21 Aug 2003 15:41:04 +0000
parents ec1a178b2608
children 666e1cfb4372
files src/server.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/server.c	Thu Aug 21 14:49:49 2003 +0000
+++ b/src/server.c	Thu Aug 21 15:41:04 2003 +0000
@@ -1093,6 +1093,10 @@
 
 	account = gaim_connection_get_account(gc);
 	b = gaim_find_buddy(account, name);
+
+	if(!b) /* This shouldn't happen, but apparently does */
+		return;
+
 	c = gaim_find_conversation(b->name);
 
 	if (signon && (GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl)->options &