Mercurial > pidgin
diff src/protocols/zephyr/zephyr.c @ 10111:8490f2e292a6
[gaim-migrate @ 11144]
cleaning out the 64-bit stuff from my tree...piece by piece
committer: Tailor Script <tailor@pidgin.im>
| author | Nathan Walp <nwalp@pidgin.im> |
|---|---|
| date | Mon, 18 Oct 2004 05:22:21 +0000 |
| parents | eb8ccdd6f5f2 |
| children | 9f358a718f38 |
line wrap: on
line diff
--- a/src/protocols/zephyr/zephyr.c Mon Oct 18 01:03:51 2004 +0000 +++ b/src/protocols/zephyr/zephyr.c Mon Oct 18 05:22:21 2004 +0000 @@ -2403,12 +2403,13 @@ gaim_debug_info("zephyr", "who is null\n"); recipient = local_zephyr_normalize(zephyr,""); } else { + char *comma = strrchr(who, ','); /* Don't ping broadcast (chat) recipients */ /* The strrchr case finds a realm-stripped broadcast subscription e.g. comma is the last character in the string */ - if ((strrchr(who, ',') && ((strrchr(who, ',') == (who+strlen(who)-1)) || ((char *)(strrchr(who, ',')[1] == '@'))))) + if (comma && ( (*(comma+1) == '\0') || (*(comma+1) == '@'))) return 0; - + recipient = local_zephyr_normalize(zephyr,who); }
