summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/botserv.c12
1 files changed, 6 insertions, 6 deletions
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);
}