diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-12 18:42:06 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-12 18:42:06 +0000 |
commit | 2cd3b57fe08b6cdae5d99021252898dedd3a0650 (patch) | |
tree | 77a8ebf2339d02c324aaa5d066913756c51d35b2 /src/modules | |
parent | a266dadd1351d10b56ec187c7b6f7af75350ed68 (diff) |
Structure optimizations, changed a lot of bools into binary bitmasks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1368 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_knock.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_override.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_knock.cpp b/src/modules/m_knock.cpp index 649c210b8..e1654c181 100644 --- a/src/modules/m_knock.cpp +++ b/src/modules/m_knock.cpp @@ -40,7 +40,7 @@ void handle_knock(char **parameters, int pcnt, userrec *user) WriteServ(user->fd,"480 %s :Can't KNOCK on %s, +K is set.",user->nick, c->name); return; } - if (c->inviteonly) + if (c->binarymodes & CM_INVITEONLY) { WriteChannelWithServ((char*)Srv->GetServerName().c_str(),c,"NOTICE %s :User %s is KNOCKing on %s (%s)",c->name,user->nick,c->name,line.c_str()); WriteServ(user->fd,"NOTICE %s :KNOCKing on %s",user->nick,c->name); diff --git a/src/modules/m_override.cpp b/src/modules/m_override.cpp index 063e94b12..916acb36e 100644 --- a/src/modules/m_override.cpp +++ b/src/modules/m_override.cpp @@ -165,7 +165,7 @@ class ModuleOverride : public Module { if (chan) { - if ((chan->inviteonly) && (CanOverride(user,"INVITE"))) + if ((chan->binarymodes & CM_INVITEONLY) && (CanOverride(user,"INVITE"))) { if (NoisyOverride) { |