mirror of
https://github.com/anope/anope.git
synced 2026-06-29 12:56:38 +02:00
Do not send kills after sending XLines because it causes us to internally remove the user and then recieve a quit from the user (who is now nonexistant) once the IRCd processes the XLine
This commit is contained in:
@@ -23,8 +23,6 @@ class SGLineManager : public XLineManager
|
||||
void OnMatch(User *u, XLine *x) anope_override
|
||||
{
|
||||
this->Send(u, x);
|
||||
if (u)
|
||||
u->Kill(Config->OperServ, x->Reason);
|
||||
}
|
||||
|
||||
void OnExpire(XLine *x) anope_override
|
||||
@@ -101,12 +99,6 @@ class SQLineManager : public XLineManager
|
||||
void OnMatch(User *u, XLine *x) anope_override
|
||||
{
|
||||
this->Send(u, x);
|
||||
|
||||
if (u)
|
||||
{
|
||||
Anope::string reason = "Q-Lined: " + x->Reason;
|
||||
u->Kill(Config->OperServ, reason);
|
||||
}
|
||||
}
|
||||
|
||||
void OnExpire(XLine *x) anope_override
|
||||
@@ -148,12 +140,6 @@ class SNLineManager : public XLineManager
|
||||
void OnMatch(User *u, XLine *x) anope_override
|
||||
{
|
||||
this->Send(u, x);
|
||||
|
||||
if (u)
|
||||
{
|
||||
Anope::string reason = "G-Lined: " + x->Reason;
|
||||
u->Kill(Config->OperServ, reason);
|
||||
}
|
||||
}
|
||||
|
||||
void OnExpire(XLine *x) anope_override
|
||||
|
||||
Reference in New Issue
Block a user