mirror of
https://github.com/anope/anope.git
synced 2026-07-04 05:53:12 +02:00
Allow a core Service's ident, host, and real name to be changed, but disallow changing their nicks. Fixes the BS BOT CHANGE part of bug #1070.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2203 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+2
-2
@@ -158,7 +158,7 @@ class CommandBSBot : public Command
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
if (nickIsServices(oldnick, 0))
|
||||
if (stricmp(oldnick, nick) && nickIsServices(oldnick, 0))
|
||||
{
|
||||
notice_lang(s_BotServ, u, BOT_DOES_NOT_EXIST, oldnick);
|
||||
return MOD_CONT;
|
||||
@@ -182,7 +182,7 @@ class CommandBSBot : public Command
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
if (nickIsServices(nick, 0))
|
||||
if (stricmp(oldnick, nick) && nickIsServices(nick, 0))
|
||||
{
|
||||
notice_lang(s_BotServ, u, BOT_DOES_NOT_EXIST, oldnick);
|
||||
return MOD_CONT;
|
||||
|
||||
Reference in New Issue
Block a user