X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Ftools.c;h=973bc53bb823455cc1fce85313c2e690a641336a;hb=ea2e6d3812a4ba866c50354599108a89b151f27f;hp=26c83a9b393fbe38ebdb5a10aef48be20662b1b0;hpb=2dd528688b5314c00b7c6c8802bc2a0d7fe7ada3;p=srvx.git diff --git a/src/tools.c b/src/tools.c index 26c83a9..973bc53 100644 --- a/src/tools.c +++ b/src/tools.c @@ -378,7 +378,7 @@ is_gline(const char *text) return 0; if (!*text) return 0; - while (*text && (isalnum((char)*text) || strchr(".-?*", *text))) + while (*text && (isalnum((char)*text) || strchr(".-?*:", *text))) text++; return !*text; } @@ -405,9 +405,9 @@ split_ircmask(char *text, char **nick, char **ident, char **host) *text = 0; if (ident) *ident = start; - + start = ++text; - while (*text && (isalnum((char)*text) || strchr(".-?*", *text))) + while (*text && (isalnum((char)*text) || strchr(".-?*:", *text))) text++; if (host) *host = start;