diff options
| author | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-11-20 16:28:56 +0000 |
|---|---|---|
| committer | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-11-20 16:28:56 +0000 |
| commit | 18cfa4226c5b1f01fde5bdaf6810b4006fde8c05 (patch) | |
| tree | c0bab9b644ed0ee7972c025a285616bebb2a3c8b /src | |
| parent | 623440ac9ed3a5600a081990f6d479d7042b7c09 (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/botserv.c | 12 |
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); } |
