diff options
author | Adam <Adam@anope.org> | 2011-08-01 22:37:27 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-08-01 22:37:27 -0400 |
commit | f7adc0b35b50f06706872a161f1c7476e6e6981e (patch) | |
tree | 91fbe281f2772136a327fd4fc4c64740d1ab65ab /modules/extra/cs_enforce.cpp | |
parent | 710c02f3bd3581b7c5b3d48e7604756975219fc8 (diff) |
Rewrote the access systems and added a flags access system
Diffstat (limited to 'modules/extra/cs_enforce.cpp')
-rw-r--r-- | modules/extra/cs_enforce.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/extra/cs_enforce.cpp b/modules/extra/cs_enforce.cpp index 4ba813ffd..5f59a4b31 100644 --- a/modules/extra/cs_enforce.cpp +++ b/modules/extra/cs_enforce.cpp @@ -69,7 +69,7 @@ class CommandCSEnforce : public Command void DoRestricted(Channel *c) { - ChannelInfo *ci; + /*ChannelInfo *ci; int16 old_nojoin_level; Anope::string mask; @@ -94,6 +94,9 @@ class CommandCSEnforce : public Command } ci->levels[CA_NOJOIN] = old_nojoin_level; + XXX + */ + } void DoCModeR(Channel *c) @@ -136,7 +139,7 @@ class CommandCSEnforce : public Command source.Reply(CHAN_X_NOT_IN_USE, params[0].c_str()); else if (!c->ci) source.Reply(CHAN_X_NOT_REGISTERED, c->name.c_str()); - else if (!check_access(u, c->ci, CA_AKICK)) + else if (!c->ci->HasPriv(u, CA_AKICK)) source.Reply(ACCESS_DENIED); else { |