From 4c286655e1b930908fd02681ac00e172156e737c Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 20 Jul 2008 14:30:00 +0000 Subject: Remove custom members for +lk storage git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10053 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_override.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_override.cpp') diff --git a/src/modules/m_override.cpp b/src/modules/m_override.cpp index 15cf2ae55..dc9e9ab37 100644 --- a/src/modules/m_override.cpp +++ b/src/modules/m_override.cpp @@ -253,7 +253,7 @@ class ModuleOverride : public Module return -1; } - if ((!chan->key.empty()) && (CanOverride(user,"KEY")) && keygiven != chan->key) + if ((chan->modes[CM_KEY]) && (CanOverride(user,"KEY")) && keygiven != chan->GetModeParameter('k')) { if (RequireKey && keygiven != "override") { @@ -268,7 +268,7 @@ class ModuleOverride : public Module return -1; } - if ((chan->limit > 0) && (chan->GetUserCounter() >= chan->limit) && (CanOverride(user,"LIMIT"))) + if ((chan->modes[CM_LIMIT]) && (chan->GetUserCounter() >= atoi(chan->GetModeParameter('l').c_str())) && (CanOverride(user,"LIMIT"))) { if (RequireKey && keygiven != "override") { -- cgit v1.2.3