From 4d14d35d1a73d80564b06549ff3e26b1675f4df5 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Sun, 5 Oct 2014 22:19:39 +0000 Subject: [PATCH] Allow nicknames to start with ~, apparently allowed by IRCnet. git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@505 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 fe9b98d..145dbb9 100644 --- a/source/parse.c +++ b/source/parse.c @@ -1952,7 +1952,7 @@ void parse_server(char *orig_line) return; /* Serious protocol violation -- ByeBye */ /* Check for egregiously bad nicknames */ -#define islegal(c) (((c) >= 'A' && (c) <= '}') || \ +#define islegal(c) (((c) >= 'A' && (c) <= '~') || \ ((c) >= '0' && (c) <= '9') || (c) == '-' || (c & 0x80)) if (*from && !strchr(from, '.') && !islegal(*from))