]> jfr.im git - irc/ircd-hybrid/anope-protocol-module.git/commitdiff
- Fixed SendChannel() so modes are prefixed with a `+`
authormiwob <redacted>
Sat, 2 Jul 2022 13:36:22 +0000 (15:36 +0200)
committermiwob <redacted>
Sat, 2 Jul 2022 13:36:22 +0000 (15:36 +0200)
hybrid.cpp

index 14f64d75dc832b9324bd36812b38380259b95a4b..6270c41ebb928cb73c70d2e72b1e4871ac354dec 100644 (file)
@@ -221,11 +221,7 @@ class HybridProto : public IRCDProto
 
        void SendChannel(Channel *c) anope_override
        {
-               Anope::string modes = c->GetModes(true, true);
-
-               if (modes.empty())
-                       modes = "+";
-
+               Anope::string modes = "+" + c->GetModes(true, true);
                UplinkSocket::Message(Me) << "SJOIN " << c->creation_time << " " << c->name << " " << modes << " :";
        }