From b7a995c1f132296d979e52a97ca06c4ce1553eec Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Mon, 23 Mar 2009 21:59:11 +0000 Subject: [PATCH] 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 --- src/core/bs_bot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/bs_bot.c b/src/core/bs_bot.c index 707d137ca..2c72246d0 100644 --- a/src/core/bs_bot.c +++ b/src/core/bs_bot.c @@ -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;