summaryrefslogtreecommitdiff
path: root/modules/commands/cs_enforce.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-01-06 01:19:25 -0500
committerAdam <Adam@anope.org>2013-01-06 01:19:25 -0500
commitc5f4c8d174da882d355798b1d340ea3d13557fa5 (patch)
treee9029910e0f8ad0f811911d7d9c0b8309f01b279 /modules/commands/cs_enforce.cpp
parent6ba49642d07b9860e2f4662f1e924537210a9f2d (diff)
Fixed enforce ssl to not ban users if the channel is ssl only
Diffstat (limited to 'modules/commands/cs_enforce.cpp')
-rw-r--r--modules/commands/cs_enforce.cpp2
1 files changed, 1 insertions, 1 deletions
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());
}