mirror of
https://github.com/anope/anope.git
synced 2026-06-12 18:54:47 +02:00
Fix the name of the key parameter in SendSVSJoin.
This commit is contained in:
+2
-2
@@ -240,9 +240,9 @@ public:
|
||||
* @param bi The source of the message
|
||||
* @param u The user to join
|
||||
* @param chan The channel to join the user to
|
||||
* @param param Channel key?
|
||||
* @param key Channel key
|
||||
*/
|
||||
virtual void SendSVSJoin(const MessageSource &source, User *u, const Anope::string &chan, const Anope::string ¶m) { }
|
||||
virtual void SendSVSJoin(const MessageSource &source, User *u, const Anope::string &chan, const Anope::string &key) { }
|
||||
|
||||
/** Force parts a user that isn't ours from a channel.
|
||||
* @param source The source of the message
|
||||
|
||||
@@ -238,7 +238,7 @@ public:
|
||||
Uplink::Send("SVSNICK", u->GetUID(), u->timestamp, newnick, when);
|
||||
}
|
||||
|
||||
void SendSVSJoin(const MessageSource &source, User *u, const Anope::string &chan, const Anope::string &) override
|
||||
void SendSVSJoin(const MessageSource &source, User *u, const Anope::string &chan, const Anope::string &key) override
|
||||
{
|
||||
Uplink::Send(source, "SVSJOIN", u->GetUID(), chan);
|
||||
}
|
||||
|
||||
@@ -509,7 +509,7 @@ public:
|
||||
SendAddLine("Z", x->GetHost(), timeleft, x->by, x->GetReason());
|
||||
}
|
||||
|
||||
void SendSVSJoin(const MessageSource &source, User *u, const Anope::string &chan, const Anope::string &other) override
|
||||
void SendSVSJoin(const MessageSource &source, User *u, const Anope::string &chan, const Anope::string &key) override
|
||||
{
|
||||
Uplink::Send(source, "SVSJOIN", u->GetUID(), chan);
|
||||
}
|
||||
|
||||
@@ -164,7 +164,7 @@ public:
|
||||
Uplink::Send(source, "ENCAP", '*', "TOPIC", c->name, c->topic_setter, c->topic_ts, c->topic);
|
||||
}
|
||||
|
||||
void SendSVSJoin(const MessageSource &source, User *user, const Anope::string &chan, const Anope::string ¶m) override
|
||||
void SendSVSJoin(const MessageSource &source, User *user, const Anope::string &chan, const Anope::string &key) override
|
||||
{
|
||||
Uplink::Send(source, "ENCAP", '*', "SVSJOIN", user->GetUID(), chan);
|
||||
}
|
||||
|
||||
@@ -299,12 +299,12 @@ private:
|
||||
/* In older Unreal SVSJOIN and SVSNLINE tokens were mixed so SVSJOIN and SVSNLINE are broken
|
||||
when coming from a none TOKEN'd server
|
||||
*/
|
||||
void SendSVSJoin(const MessageSource &source, User *user, const Anope::string &chan, const Anope::string ¶m) override
|
||||
void SendSVSJoin(const MessageSource &source, User *user, const Anope::string &chan, const Anope::string &key) override
|
||||
{
|
||||
if (!param.empty())
|
||||
Uplink::Send("SVSJOIN", user->GetUID(), chan, param);
|
||||
else
|
||||
if (key.empty())
|
||||
Uplink::Send("SVSJOIN", user->GetUID(), chan);
|
||||
else
|
||||
Uplink::Send("SVSJOIN", user->GetUID(), chan, key);
|
||||
}
|
||||
|
||||
void SendSVSPart(const MessageSource &source, User *user, const Anope::string &chan, const Anope::string ¶m) override
|
||||
|
||||
Reference in New Issue
Block a user