diff options
Diffstat (limited to 'src/misc.cpp')
-rw-r--r-- | src/misc.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/misc.cpp b/src/misc.cpp index a653571e2..e8d6d14f3 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -732,9 +732,12 @@ void doCleanBuffer(char *str) */ void EnforceQlinedNick(const std::string &nick, const char *killer) { - User *u2; + if (findbot(nick)) + return; + + User *u2 = finduser(nick); - if ((u2 = finduser(nick))) + if (u2) { Alog() << "Killed Q-lined nick: " << u2->GetMask(); kill_user(killer, u2->nick.c_str(), "This nick is reserved for Services. Please use a non Q-Lined nick."); |