changeset 22844:396fd93907f1

Add only the online buddies for auto-completion in the invite dialog.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Thu, 08 May 2008 05:14:35 +0000
parents eb1321b2e496
children 713cd3a2d1cd
files pidgin/gtkconv.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkconv.c	Thu May 08 05:04:36 2008 +0000
+++ b/pidgin/gtkconv.c	Thu May 08 05:14:35 2008 +0000
@@ -703,7 +703,10 @@
 	PurpleAccount *account = NULL;
 
 	if (entry->is_buddy) {
-		account = purple_buddy_get_account(entry->entry.buddy);
+		if (PURPLE_BUDDY_IS_ONLINE(entry->entry.buddy))
+			account = purple_buddy_get_account(entry->entry.buddy);
+		else
+			return FALSE;
 	} else {
 		account = entry->entry.logged_buddy->account;
 	}