From de1145ffc989c5596a3833f36a6b88eeffabc9c5 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Tue, 14 Oct 2014 13:44:45 +0000 Subject: [PATCH] Refine illegal message source characters: * is in, - is out. IRCNet uses message sources like *.se (ie masked server names) after a netsplit. git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@509 13b04d17-f746-0410-82c6-800466cd88b0 --- source/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/parse.c b/source/parse.c index bfb7624..7f16e0d 100644 --- a/source/parse.c +++ b/source/parse.c @@ -1953,7 +1953,7 @@ void parse_server(char *orig_line) /* Check for egregiously bad nicknames */ #define islegal(c) (((c) >= 'A' && (c) <= '~') || \ - ((c) >= '0' && (c) <= '9') || (c) == '-' || (c & 0x80)) + ((c) >= '0' && (c) <= '9') || (c) == '*' || (c & 0x80)) if (*from && (!islegal(*from) || strchr(from, ','))) {