From 938924e3729b5cdba0b87e9c932098fe08e88453 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 8 Mar 2006 23:33:24 +0000 Subject: These modules were using deprecated Server::IsOnChannel. They arent any more :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3563 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_override.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules/m_override.cpp') diff --git a/src/modules/m_override.cpp b/src/modules/m_override.cpp index df6eb0616..d764f553b 100644 --- a/src/modules/m_override.cpp +++ b/src/modules/m_override.cpp @@ -110,7 +110,8 @@ class ModuleOverride : public Module { // Fix by brain - allow the change if they arent on channel - rely on boolean short-circuit // to not check the other items in the statement if they arent on the channel - if ((!Srv->IsOnChannel(source,channel)) || ((Srv->ChanMode(source,channel) != "%") && (Srv->ChanMode(source,channel) != "@"))) + std::string mode = Srv->ChanMode(source,channel); + if ((!channel->HasUser(source)) || ((mode != "%") && (mode != "@"))) { switch (access_type) { -- cgit v1.2.3