mirror of
https://github.com/anope/anope.git
synced 2026-06-29 02:26:38 +02:00
Made akills work on IRCds that do not support bans (ngircd)
This commit is contained in:
@@ -95,7 +95,7 @@ class RatboxProto : public IRCDProto
|
||||
send_cmd(source ? source->GetUID() : Config->Numeric, "OPERWALL :%s", buf.c_str());
|
||||
}
|
||||
|
||||
void SendSQLine(const XLine *x)
|
||||
void SendSQLine(User *, const XLine *x)
|
||||
{
|
||||
send_cmd(Config->Numeric, "RESV * %s :%s", x->Mask.c_str(), x->Reason.c_str());
|
||||
}
|
||||
@@ -106,7 +106,7 @@ class RatboxProto : public IRCDProto
|
||||
send_cmd(bi ? bi->GetUID() : Config->s_OperServ, "UNXLINE * %s", x->Mask.c_str());
|
||||
}
|
||||
|
||||
void SendSGLine(const XLine *x)
|
||||
void SendSGLine(User *, const XLine *x)
|
||||
{
|
||||
BotInfo *bi = OperServ;
|
||||
send_cmd(bi ? bi->GetUID() : Config->s_OperServ, "XLINE * %s 0 :%s", x->Mask.c_str(), x->Reason.c_str());
|
||||
@@ -139,7 +139,7 @@ class RatboxProto : public IRCDProto
|
||||
}
|
||||
}
|
||||
|
||||
void SendAkill(const XLine *x)
|
||||
void SendAkill(User *, const XLine *x)
|
||||
{
|
||||
BotInfo *bi = OperServ;
|
||||
send_cmd(bi ? bi->GetUID() : Config->s_OperServ, "KLINE * %ld %s %s :%s", static_cast<long>(x->Expires - Anope::CurTime), x->GetUser().c_str(), x->GetHost().c_str(), x->Reason.c_str());
|
||||
|
||||
Reference in New Issue
Block a user