diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-03 02:42:06 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-03 02:42:06 +0000 |
commit | 6d97b7f8f9599f1825e3b0e4b07d421bc3db2c06 (patch) | |
tree | 57735af404345dd9a4fbb1742be4d775e175f34d /src/core/cs_ban.c | |
parent | c6ef1e0390abe38404742d2355145d6f671ca2dc (diff) |
Fix bug #1045, patch from Adam, suspended channels can no longer be administered, and control over checking forbidden and suspended channels has been moved out of the modules and into the core.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2243 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/cs_ban.c')
-rw-r--r-- | src/core/cs_ban.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/core/cs_ban.c b/src/core/cs_ban.c index bb0b6d13b..3ac9f3174 100644 --- a/src/core/cs_ban.c +++ b/src/core/cs_ban.c @@ -64,8 +64,6 @@ class CommandCSBan : public Command notice_lang(s_ChanServ, u, CHAN_X_NOT_IN_USE, chan); } else if (!(ci = c->ci)) { notice_lang(s_ChanServ, u, CHAN_X_NOT_REGISTERED, chan); - } else if (ci->flags & CI_FORBIDDEN) { - notice_lang(s_ChanServ, u, CHAN_X_FORBIDDEN, chan); } else if (is_same ? !(u2 = u) : !(u2 = finduser(target))) { notice_lang(s_ChanServ, u, NICK_X_NOT_IN_USE, target); } else if (!is_same ? !check_access(u, ci, CA_BAN) : @@ -155,12 +153,6 @@ class CommandCSUnban : public Command return MOD_CONT; } - if (ci->flags & CI_FORBIDDEN) - { - notice_lang(s_ChanServ, u, CHAN_X_FORBIDDEN, chan); - return MOD_CONT; - } - if (!check_access(u, ci, CA_UNBAN)) { notice_lang(s_ChanServ, u, PERMISSION_DENIED); |