diff options
author | Adam <Adam@anope.org> | 2010-06-27 16:26:35 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-06-27 16:26:35 -0400 |
commit | 8cf8faf5297ef640cb4437d01dbf57a985c235f9 (patch) | |
tree | 53e755433ffe5744936903b003818ba6411b43e7 /src/misc.cpp | |
parent | 6e1fa85cbcf3a0bf3e2e84ea609f37e8b9c7d1fd (diff) |
Don't attempt to enforce sqlines on our own clients
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."); |