From c5f4c8d174da882d355798b1d340ea3d13557fa5 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 6 Jan 2013 01:19:25 -0500 Subject: Fixed enforce ssl to not ban users if the channel is ssl only --- modules/commands/cs_enforce.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/commands/cs_enforce.cpp') diff --git a/modules/commands/cs_enforce.cpp b/modules/commands/cs_enforce.cpp index 80f751ec5..01a1865eb 100644 --- a/modules/commands/cs_enforce.cpp +++ b/modules/commands/cs_enforce.cpp @@ -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()); } -- cgit