Mercurial > pidgin
diff src/conversation.c @ 11552:11d30825c1bb
[gaim-migrate @ 13812]
Source Forge patch 1273590 from Casey Harkins to move all sound playing events into gtksound.[ch] as well as a few other clean ups to make sure that all sounds are being played by the ui.
committer: Tailor Script <tailor@pidgin.im>
author | Gary Kramlich <grim@reaperworld.com> |
---|---|
date | Sat, 17 Sep 2005 03:00:12 +0000 |
parents | 9fc7d0153332 |
children | 9b3833da6840 |
line wrap: on
line diff
--- a/src/conversation.c Thu Sep 15 14:54:23 2005 +0000 +++ b/src/conversation.c Sat Sep 17 03:00:12 2005 +0000 @@ -54,30 +54,6 @@ static void conv_placement_last_created_win(GaimConversation *conv); static gboolean -find_nick(const char *nick, const char *message) -{ - char *msg, *who, *p; - int n; - gboolean ret = FALSE; - - msg = g_utf8_strdown(message, -1); - - who = g_utf8_strdown(nick, -1); - n = strlen(who); - - if ((p = strstr(msg, who)) != NULL) { - if ((p == msg || !isalnum(*(p - 1))) && !isalnum(*(p + n))) { - ret = TRUE; - } - } - - g_free(who); - g_free(msg); - - return ret; -} - -static gboolean reset_typing(gpointer data) { GaimConversation *c = (GaimConversation *)data; @@ -1907,7 +1883,7 @@ } else { flags |= GAIM_MESSAGE_RECV; - if (find_nick(chat->nick, message)) + if (gaim_utf8_has_word(message, chat->nick)) flags |= GAIM_MESSAGE_NICK; }