pidgin/purple-plugin-pack

45d856c91c16
Parents 661775546ea1
Children 21289eee237a
purple_connection_get_display_name() doesn't necessarily return a value.
--- a/highlight/highlight.c Sun Sep 28 23:07:11 2008 -0400
+++ b/highlight/highlight.c Thu Oct 02 01:27:44 2008 -0400
@@ -164,6 +164,7 @@
char **splits;
int len;
int wl, sl;
+ const char *me;
if (*flags & PURPLE_MESSAGE_NICK) {
return FALSE; /* this message is already highlighted */
@@ -172,7 +173,8 @@
if (!words)
return FALSE;
- if (g_utf8_collate(*who, purple_connection_get_display_name(purple_account_get_connection(account))) == 0)
+ me = purple_connection_get_display_name(purple_account_get_connection(account));
+ if (me != NULL && g_utf8_collate(*who, me) == 0)
return FALSE;
splits = g_strsplit_set(*message, DELIMS, -1);