summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-12-24 19:55:09 -0500
committerAdam <Adam@anope.org>2010-12-24 20:11:00 -0500
commit4e303566dc52dc2d3457af1af77fab23318a3570 (patch)
treefc1f5ee357d1d5800cd891f10660f9d68b38d752
parent4f7144e5133b9d5071007900302a83d82f0c18c8 (diff)
Bug #1216 - Do not apply SQLines on our own clients
-rw-r--r--src/operserv.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/operserv.cpp b/src/operserv.cpp
index a1b44ea27..c41e6b1c5 100644
--- a/src/operserv.cpp
+++ b/src/operserv.cpp
@@ -594,7 +594,7 @@ XLine *SNLineManager::Add(BotInfo *bi, User *u, const Anope::string &mask, time_
User *user = it->second;
++it;
- if (!is_oper(user) && Anope::Match(user->realname, x->Mask))
+ if (!is_oper(user) && user->server != Me && Anope::Match(user->realname, x->Mask))
kill_user(Config->ServerName, user->nick, rreason);
}
}
@@ -686,7 +686,7 @@ XLine *SQLineManager::Add(BotInfo *bi, User *u, const Anope::string &mask, time_
UserContainer *uc = *it;
++it;
- if (is_oper(uc->user))
+ if (is_oper(uc->user) || uc->user->server == Me)
continue;
c->Kick(NULL, uc->user, "%s", reason.c_str());
}
@@ -699,7 +699,7 @@ XLine *SQLineManager::Add(BotInfo *bi, User *u, const Anope::string &mask, time_
User *user = it->second;
++it;
- if (!is_oper(user) && Anope::Match(user->nick, x->Mask))
+ if (!is_oper(user) && user->server != Me && Anope::Match(user->nick, x->Mask))
kill_user(Config->ServerName, user->nick, rreason);
}
}