mirror of
https://github.com/anope/anope.git
synced 2026-07-07 02:23:12 +02:00
Don't allow registration of nicks beginning with a digit on Insp12 (disallows UID registration)
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1779 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -702,7 +702,14 @@ class InspIRCdProto : public IRCDProto
|
||||
send_cmd(ircd->ts6 ? bi->uid : bi->nick, "SNONOTICE A :%s", buf);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int IsNickValid(const char *nick)
|
||||
{
|
||||
/* InspIRCd, like TS6, uses UIDs on collision, so... */
|
||||
if (isdigit(*nick))
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
} ircd_proto;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user