1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 15:56:37 +02:00

Fixed enforce ssl to not ban users if the channel is ssl only

This commit is contained in:
Adam
2013-01-06 01:19:25 -05:00
parent 6ba49642d0
commit c5f4c8d174
+1 -1
View File
@@ -125,7 +125,7 @@ class CommandCSEnforce : public Command
Anope::string mask = ci->GetIdealBan(user);
Anope::string reason = Language::Translate(user, _("SSLONLY enforced by ")) + source.GetNick();
if (!ci->c->HasMode(CMODE_REGISTEREDONLY))
if (!ci->c->HasMode(CMODE_SSL))
ci->c->SetMode(NULL, CMODE_BAN, mask);
ci->c->Kick(NULL, user, "%s", reason.c_str());
}