From 18cfa4226c5b1f01fde5bdaf6810b4006fde8c05 Mon Sep 17 00:00:00 2001 From: "trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sat, 20 Nov 2004 16:28:56 +0000 Subject: BUILD : 1.7.6 (453) BUGS : 224 NOTES : Removing Sqline on bot nicks change if the nick was registered git-svn-id: svn://svn.anope.org/anope/trunk@453 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@307 5417fbe8-f217-4b02-8779-1006273d7864 --- src/botserv.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/botserv.c b/src/botserv.c index 25986b566..0c23c4c68 100644 --- a/src/botserv.c +++ b/src/botserv.c @@ -1365,12 +1365,6 @@ static int do_bot(User * u) } if (stricmp(bi->nick, nick)) { - /* The new nick is really different, so we remove the Q line for - the old nick. */ - if (ircd->sqline) { - anope_cmd_unsqline(bi->nick); - } - /* 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 @@ -1381,6 +1375,12 @@ static int do_bot(User * u) return MOD_CONT; } + /* The new nick is really different, so we remove the Q line for + the old nick. */ + if (ircd->sqline) { + anope_cmd_unsqline(bi->nick); + } + /* We check whether user with this nick is online, and kill it if so */ EnforceQlinedNick(nick, s_BotServ); } -- cgit