summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-27 15:02:09 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-27 15:02:09 +0000
commite7f1d2d6b4a3970b8037ee2f91bec9b29ab5a94e (patch)
treeb97c39fc483b6659a1657e72751a40e02eb8e8f5 /src/modules
parentead8ef62eb78a094771af01de5b6d4b917a6dc9b (diff)
if(chan->limit >= Srv->CountUsers(chan)) snotice & allow!?
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3774 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_override.cpp29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/modules/m_override.cpp b/src/modules/m_override.cpp
index f92bb9899..f73cd2aa3 100644
--- a/src/modules/m_override.cpp
+++ b/src/modules/m_override.cpp
@@ -198,25 +198,27 @@ class ModuleOverride : public Module
Srv->SendOpers("*** "+std::string(user->nick)+" used operoverride to bypass +i on "+std::string(cname));
return -1;
}
- if ((chan->key[0]) && (CanOverride(user,"KEY")))
- {
- if (NoisyOverride)
- WriteChannelWithServ((char*)Srv->GetServerName().c_str(),chan,"NOTICE %s :%s bypassed the channel key",cname,user->nick);
- Srv->SendOpers("*** "+std::string(user->nick)+" used operoverride to bypass +k on "+std::string(cname));
+
+ if ((chan->key[0]) && (CanOverride(user,"KEY")))
+ {
+ if (NoisyOverride)
+ WriteChannelWithServ((char*)Srv->GetServerName().c_str(),chan,"NOTICE %s :%s bypassed the channel key",cname,user->nick);
+ Srv->SendOpers("*** "+std::string(user->nick)+" used operoverride to bypass +k on "+std::string(cname));
return -1;
- }
- if ((chan->limit >= Srv->CountUsers(chan)) && (CanOverride(user,"LIMIT")))
- {
- if (NoisyOverride)
- WriteChannelWithServ((char*)Srv->GetServerName().c_str(),chan,"NOTICE %s :%s passed through your channel limit",cname,user->nick);
- Srv->SendOpers("*** "+std::string(user->nick)+" used operoverride to bypass +l on "+std::string(cname));
+ }
+
+ if ((Srv->CountUsers(chan) >= chan->limit) && (CanOverride(user,"LIMIT")))
+ {
+ if (NoisyOverride)
+ WriteChannelWithServ((char*)Srv->GetServerName().c_str(),chan,"NOTICE %s :%s passed through your channel limit",cname,user->nick);
+ Srv->SendOpers("*** "+std::string(user->nick)+" used operoverride to bypass +l on "+std::string(cname));
return -1;
- }
+ }
if (CanOverride(user,"BANWALK"))
{
// other join
- return -1;
+ return -1;
}
}
}
@@ -258,4 +260,3 @@ extern "C" void * init_module( void )
{
return new ModuleOverrideFactory;
}
-