mirror of
https://github.com/anope/anope.git
synced 2026-06-30 02:36:38 +02:00
git-svn-id: svn://svn.anope.org/anope/trunk@1090 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@814 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
parent
339e175f44
commit
bf547b2d30
+4
-4
@@ -102,7 +102,7 @@ int do_bot(User * u)
|
||||
else if (strlen(nick) > NickLen)
|
||||
notice_lang(s_BotServ, u, BOT_BAD_NICK);
|
||||
else if (strlen(user) >= USERMAX)
|
||||
notice_lang(s_BotServ, u, BOT_BAD_IDENT);
|
||||
notice_lang(s_BotServ, u, BOT_LONG_IDENT);
|
||||
else {
|
||||
NickAlias *na;
|
||||
|
||||
@@ -132,7 +132,7 @@ int do_bot(User * u)
|
||||
}
|
||||
for (ch = user; *ch && (ch - user) < USERMAX; ch++) {
|
||||
if (!isalnum(*ch)) {
|
||||
notice_lang(s_BotServ, u, BOT_BAD_IDENT);
|
||||
notice_lang(s_BotServ, u, BOT_LONG_IDENT);
|
||||
return MOD_CONT;
|
||||
}
|
||||
}
|
||||
@@ -198,7 +198,7 @@ int do_bot(User * u)
|
||||
else if (strlen(nick) > NickLen)
|
||||
notice_lang(s_BotServ, u, BOT_BAD_NICK);
|
||||
else if (user && strlen(user) >= USERMAX)
|
||||
notice_lang(s_BotServ, u, BOT_BAD_IDENT);
|
||||
notice_lang(s_BotServ, u, BOT_LONG_IDENT);
|
||||
else {
|
||||
NickAlias *na;
|
||||
|
||||
@@ -250,7 +250,7 @@ int do_bot(User * u)
|
||||
if (user) {
|
||||
for (ch = user; *ch && (ch - user) < USERMAX; ch++) {
|
||||
if (!isalnum(*ch)) {
|
||||
notice_lang(s_BotServ, u, BOT_BAD_IDENT);
|
||||
notice_lang(s_BotServ, u, BOT_LONG_IDENT);
|
||||
return MOD_CONT;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user