changeset 31721:6001935e8c62

irc: Save one useless hash table lookup
author Paul Aurich <paul@darkrain42.org>
date Mon, 27 Jun 2011 05:36:22 +0000
parents 979bab4c3bca
children afb58f3ee8f0
files libpurple/protocols/irc/msgs.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/irc/msgs.c	Mon Jun 27 05:24:53 2011 +0000
+++ b/libpurple/protocols/irc/msgs.c	Mon Jun 27 05:36:22 2011 +0000
@@ -445,7 +445,7 @@
 		g_free(userhost);
 		g_free(realname);
 		
-		flags = purple_conv_chat_user_get_flags(chat, cb->name);
+		flags = cb->flags;
 
 		if (args[6][0] == 'G' && !(flags & PURPLE_CBFLAGS_AWAY)) {
 			purple_conv_chat_user_set_flags(chat, cb->name, flags | PURPLE_CBFLAGS_AWAY);