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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user