1
0
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:
cyberbotx
2009-03-23 21:59:11 +00:00
parent 807770c40a
commit b7a995c1f1
+2 -2
View File
@@ -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;