From cab6fcc82d2d184339bfe5ed0eba22482a404ad8 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 17 May 2010 23:48:18 -0400 Subject: Added a founder access level used to determin who is a channel founder. This is completely independant of the owner levels --- src/core/cs_drop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/cs_drop.c') diff --git a/src/core/cs_drop.c b/src/core/cs_drop.c index f7c7a8571..baae58026 100644 --- a/src/core/cs_drop.c +++ b/src/core/cs_drop.c @@ -48,7 +48,7 @@ class CommandCSDrop : public Command return MOD_CONT; } - if ((ci->HasFlag(CI_SECUREFOUNDER) ? !IsRealFounder(u, ci) : !IsFounder(u, ci)) && !u->Account()->HasCommand("chanserv/drop")) + if ((ci->HasFlag(CI_SECUREFOUNDER) ? !IsFounder(u, ci) : !check_access(u, ci, CA_FOUNDER)) && !u->Account()->HasCommand("chanserv/drop")) { notice_lang(Config.s_ChanServ, u, ACCESS_DENIED); return MOD_CONT; @@ -78,7 +78,7 @@ class CommandCSDrop : public Command * drop the channel before issuing the wallops. */ if (Config.WallDrop) { - if ((level < ACCESS_FOUNDER) || (!IsRealFounder(u, ci) && ci->HasFlag(CI_SECUREFOUNDER))) + if ((level < ACCESS_FOUNDER) || (!IsFounder(u, ci) && ci->HasFlag(CI_SECUREFOUNDER))) ircdproto->SendGlobops(ChanServ, "\2%s\2 used DROP on channel \2%s\2", u->nick.c_str(), chan); } -- cgit