mirror of
https://github.com/anope/anope.git
synced 2026-07-10 23:23:13 +02:00
Allow specifying the order of ns_set_misc entries.
This commit is contained in:
@@ -587,7 +587,7 @@ public:
|
||||
Uplink::Send(source, "SVSPART", u->GetUID(), chan);
|
||||
}
|
||||
|
||||
void SendSWhois(const MessageSource &source, User *target, const Anope::string &tag, const Anope::string &message) override
|
||||
void SendSWhois(const MessageSource &source, User *target, const Anope::string &tag, time_t priority, const Anope::string &message) override
|
||||
{
|
||||
if (!IRCD->CanSendMultipleSWhois)
|
||||
{
|
||||
@@ -598,7 +598,7 @@ public:
|
||||
{
|
||||
// New style SWHOIS.
|
||||
Uplink::Send("METADATA", target->GetUID(), "specialwhois", Anope::Format("+ @%s s %ld :%s",
|
||||
tag.c_str(), Anope::CurTime, message.c_str()));
|
||||
tag.c_str(), priority ? priority : Anope::CurTime, message.c_str()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -346,10 +346,10 @@ private:
|
||||
Uplink::Send("SENDUMODE", 'o', "From " + source.GetName() + ": " + buf);
|
||||
}
|
||||
|
||||
void SendSWhois(const MessageSource &source, User *target, const Anope::string &tag, const Anope::string &message) override
|
||||
void SendSWhois(const MessageSource &source, User *target, const Anope::string &tag, time_t priority, const Anope::string &message) override
|
||||
{
|
||||
const auto utag = tag.empty() ? source.GetName() : tag;
|
||||
Uplink::Send(source, "SWHOIS", target->GetUID(), "+", utag, 0, message);
|
||||
Uplink::Send(source, "SWHOIS", target->GetUID(), "+", utag, priority, message);
|
||||
}
|
||||
|
||||
void SendSWhoisDel(const MessageSource &source, User *target, const Anope::string &tag, const Anope::string &message) override
|
||||
|
||||
Reference in New Issue
Block a user