# HG changeset patch # User Sadrul Habib Chowdhury # Date 1210223675 0 # Node ID 396fd93907f1c3cb622a3f185e2b5b1eab5500e8 # Parent eb1321b2e496a8399410f269d9ed7d2913b1a686 Add only the online buddies for auto-completion in the invite dialog. diff -r eb1321b2e496 -r 396fd93907f1 pidgin/gtkconv.c --- 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; }