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
This commit is contained in:
@@ -1953,7 +1953,7 @@ void parse_server(char *orig_line)
|
|||||||
|
|
||||||
/* Check for egregiously bad nicknames */
|
/* Check for egregiously bad nicknames */
|
||||||
#define islegal(c) (((c) >= 'A' && (c) <= '~') || \
|
#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, ',')))
|
if (*from && (!islegal(*from) || strchr(from, ',')))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user