comparison finch/gntsound.c @ 22215:07c2b8fa7bb4

Update finch to not touch the internals of PurpleConversation.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 26 Jan 2008 21:39:29 +0000
parents c38d72677c8a
children 5152a14d06a3
comparison
equal deleted inserted replaced
22214:2b426862ffbf 22215:07c2b8fa7bb4
140 { 140 {
141 PurpleConvChat *chat = NULL; 141 PurpleConvChat *chat = NULL;
142 char *nick = NULL; 142 char *nick = NULL;
143 char *name = NULL; 143 char *name = NULL;
144 gboolean ret = FALSE; 144 gboolean ret = FALSE;
145 PurpleAccount *account;
146
145 chat = purple_conversation_get_chat_data(conv); 147 chat = purple_conversation_get_chat_data(conv);
146
147 if (chat == NULL) 148 if (chat == NULL)
148 return ret; 149 return ret;
149 150
150 nick = g_strdup(purple_normalize(conv->account, chat->nick)); 151 account = purple_conversation_get_account(conv);
151 name = g_strdup(purple_normalize(conv->account, aname)); 152 nick = g_strdup(purple_normalize(account, chat->nick));
153 name = g_strdup(purple_normalize(account, aname));
152 154
153 if (g_utf8_collate(nick, name) == 0) 155 if (g_utf8_collate(nick, name) == 0)
154 ret = TRUE; 156 ret = TRUE;
155 157
156 g_free(nick); 158 g_free(nick);