diff options
author | Sadie Powell <sadie@witchery.services> | 2024-07-14 16:38:40 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-07-14 16:39:37 +0100 |
commit | 2de0dddb1c86b332b000d60dbdd81abe4f82cdb1 (patch) | |
tree | 67501039703cfbb75d320e68b7ff6f18af99d2eb /modules | |
parent | 41ea3465516f207e92c46f1c36decdecf197f04c (diff) |
Fix joining channels with keys on InspIRCd v3.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/protocol/inspircd3.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/protocol/inspircd3.cpp b/modules/protocol/inspircd3.cpp index 16a6ba1d4..d3a717a3f 100644 --- a/modules/protocol/inspircd3.cpp +++ b/modules/protocol/inspircd3.cpp @@ -394,9 +394,12 @@ class InspIRCd3Proto : public IRCDProto SendAddLine("Z", x->GetHost(), timeleft, x->by, x->GetReason()); } - void SendSVSJoin(const MessageSource &source, User *u, const Anope::string &chan, const Anope::string &other) anope_override + void SendSVSJoin(const MessageSource &source, User *u, const Anope::string &chan, const Anope::string &key) anope_override { - UplinkSocket::Message(source) << "SVSJOIN " << u->GetUID() << " " << chan; + if (key.empty()) + UplinkSocket::Message(source) << "SVSJOIN " << u->GetUID() << " " << chan; + else + UplinkSocket::Message(source) << "SVSJOIN " << u->GetUID() << " " << chan << " :" << key; } void SendSVSPart(const MessageSource &source, User *u, const Anope::string &chan, const Anope::string ¶m) anope_override |