mirror of
https://github.com/anope/anope.git
synced 2026-07-07 07:53:12 +02:00
Keep track on what ircds we can svsjoin, add an svspart method
This commit is contained in:
@@ -74,6 +74,7 @@ class InspIRCd12Proto : public IRCDProto
|
||||
{
|
||||
DefaultPseudoclientModes = "+I";
|
||||
CanSVSNick = true;
|
||||
CanSVSJoin = true;
|
||||
CanSetVHost = true;
|
||||
CanSetVIdent = true;
|
||||
CanSQLine = true;
|
||||
@@ -309,12 +310,19 @@ class InspIRCd12Proto : public IRCDProto
|
||||
SendAddLine("Z", x->GetHost(), timeleft, x->by, x->GetReason());
|
||||
}
|
||||
|
||||
void SendSVSJoin(const BotInfo *source, const Anope::string &nick, const Anope::string &chan, const Anope::string &) anope_override
|
||||
void SendSVSJoin(const BotInfo *source, const User *u, const Anope::string &chan, const Anope::string &) anope_override
|
||||
{
|
||||
User *u = User::Find(nick);
|
||||
UplinkSocket::Message(source) << "SVSJOIN " << u->GetUID() << " " << chan;
|
||||
}
|
||||
|
||||
void SendSVSPart(const BotInfo *source, const User *u, const Anope::string &chan, const Anope::string ¶m) anope_override
|
||||
{
|
||||
if (!param.empty())
|
||||
UplinkSocket::Message(source) << "SVSPART " << u->GetUID() << " " << chan << " :" << param;
|
||||
else
|
||||
UplinkSocket::Message(source) << "SVSPART " << u->GetUID() << " " << chan;
|
||||
}
|
||||
|
||||
void SendSWhois(const BotInfo *, const Anope::string &who, const Anope::string &mask) anope_override
|
||||
{
|
||||
User *u = User::Find(who);
|
||||
|
||||
Reference in New Issue
Block a user