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 --- include/extern.h | 6 ------ include/services.h | 3 ++- 2 files changed, 2 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/extern.h b/include/extern.h index 100aceaa3..6f41c3977 100644 --- a/include/extern.h +++ b/include/extern.h @@ -124,11 +124,6 @@ E void cs_remove_nick(const NickCore * nc); E void check_modes(Channel * c); E int check_valid_admin(User * user, Channel * chan, int servermode); E int check_valid_op(User * user, Channel * chan, int servermode); -E int check_should_op(User * user, char *chan); -E int check_should_voice(User * user, char *chan); -E int check_should_halfop(User * user, char *chan); -E int check_should_owner(User * user, char *chan); -E int check_should_protect(User * user, char *chan); E void record_topic(const char *chan); E void restore_topic(const char *chan); E int check_topiclock(Channel * c, time_t topic_time); @@ -138,7 +133,6 @@ E ChannelInfo *cs_findchan(const std::string &chan); E ChannelInfo *cs_findchan(const ci::string &chan); E int check_access(User * user, ChannelInfo * ci, int what); E bool IsFounder(User *user, ChannelInfo *ci); -E bool IsRealFounder(User *user, ChannelInfo *ci); E int get_access(User *user, ChannelInfo *ci); E void update_cs_lastseen(User * user, ChannelInfo * ci); E int get_idealban(ChannelInfo * ci, User * u, char *ret, int retlen); diff --git a/include/services.h b/include/services.h index 7db58e3fb..0a4648105 100644 --- a/include/services.h +++ b/include/services.h @@ -621,8 +621,9 @@ struct BadWord #define CA_AUTOOWNER 36 #define CA_OWNER 37 #define CA_OWNERME 38 +#define CA_FOUNDER 39 -#define CA_SIZE 39 +#define CA_SIZE 40 /* BotServ SET flags */ enum BotServFlag -- cgit