mirror of
https://github.com/anope/anope.git
synced 2026-07-05 14:23:13 +02:00
BUILD : 1.7.6 (447) BUGS : NOTES : New botserv bot nicks need to be unregistered nicks from now on
git-svn-id: svn://svn.anope.org/anope/trunk@447 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@301 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
parent
fd63b1d276
commit
e5e98cc9e5
+6
-7
@@ -1257,14 +1257,13 @@ static int do_bot(User * u)
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
/* We check whether the nick is registered, and drop it if so. */
|
||||
/* We check whether the nick is registered, and inform the user
|
||||
* if so. You need to drop the nick manually before you can use
|
||||
* it as a bot nick from now on -GD
|
||||
*/
|
||||
if ((na = findnick(nick))) {
|
||||
if (NSSecureAdmins && nick_is_services_admin(na->nc)
|
||||
&& !is_services_root(u)) {
|
||||
notice_lang(s_BotServ, u, PERMISSION_DENIED);
|
||||
return MOD_CONT;
|
||||
}
|
||||
delnick(na);
|
||||
notice_lang(s_BotServ, u, NICK_X_IN_USE, nick);
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
bi = makebot(nick);
|
||||
|
||||
Reference in New Issue
Block a user