Mercurial > pidgin.yaz
comparison src/buddy_chat.c @ 2384:05034cd0402b
[gaim-migrate @ 2397]
this won't break anything.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 28 Sep 2001 09:33:38 +0000 |
parents | 9e9385cddcc6 |
children | bdc74764245c |
comparison
equal
deleted
inserted
replaced
2383:3d4bbadf4b8d | 2384:05034cd0402b |
---|---|
479 who = g_strdup(gc->username); | 479 who = g_strdup(gc->username); |
480 n = strlen(who); | 480 n = strlen(who); |
481 g_strdown(who); | 481 g_strdown(who); |
482 | 482 |
483 if ((p = strstr(msg, who)) != NULL) { | 483 if ((p = strstr(msg, who)) != NULL) { |
484 if ((p == msg) || (!isalnum(*(p - 1)) && !isalnum(*(p + n)))) { | 484 if (((p == msg) || !isalnum(*(p - 1))) && !isalnum(*(p + n))) { |
485 g_free(who); | 485 g_free(who); |
486 g_free(msg); | 486 g_free(msg); |
487 return TRUE; | 487 return TRUE; |
488 } | 488 } |
489 } | 489 } |
497 who = g_strdup(gc->displayname); | 497 who = g_strdup(gc->displayname); |
498 n = strlen(who); | 498 n = strlen(who); |
499 g_strdown(who); | 499 g_strdown(who); |
500 | 500 |
501 if ((p = strstr(msg, who)) != NULL) { | 501 if ((p = strstr(msg, who)) != NULL) { |
502 if ((p == msg) || (!isalnum(*(p - 1)) && !isalnum(*(p + n)))) { | 502 if (((p == msg) || !isalnum(*(p - 1))) && !isalnum(*(p + n))) { |
503 g_free(who); | 503 g_free(who); |
504 g_free(msg); | 504 g_free(msg); |
505 return TRUE; | 505 return TRUE; |
506 } | 506 } |
507 } | 507 } |