1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 09:03:14 +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:
rburchell
2008-11-21 17:33:10 +00:00
parent 36a896fba0
commit e6dfa9cf53
+8 -1
View File
@@ -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;