Mercurial > pidgin
comparison src/buddy_chat.c @ 3944:9650e17d1276
[gaim-migrate @ 4123]
will still fix the jabber hilight weirdness (thanks faceprint)
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Mon, 11 Nov 2002 20:57:30 +0000 |
parents | 30f52e7afd1d |
children | f118d61fb89a |
comparison
equal
deleted
inserted
replaced
3943:a33d6d189591 | 3944:9650e17d1276 |
---|---|
682 | 682 |
683 who = g_strdup(gc->displayname); | 683 who = g_strdup(gc->displayname); |
684 n = strlen(who); | 684 n = strlen(who); |
685 g_strdown(who); | 685 g_strdown(who); |
686 | 686 |
687 if ((p = strstr(msg, who)) != NULL) { | 687 if (n > 0 && (p = strstr(msg, who)) != NULL) { |
688 if (((p == msg) || !isalnum(*(p - 1))) && !isalnum(*(p + n))) { | 688 if (((p == msg) || !isalnum(*(p - 1))) && !isalnum(*(p + n))) { |
689 g_free(who); | 689 g_free(who); |
690 g_free(msg); | 690 g_free(msg); |
691 return TRUE; | 691 return TRUE; |
692 } | 692 } |