diff --git a/modules/core/m_kick.c b/modules/core/m_kick.c index 4eb2cfa..841485f 100644 --- a/modules/core/m_kick.c +++ b/modules/core/m_kick.c @@ -97,7 +97,7 @@ m_kick(struct Client *client_p, struct Client *source_p, int parc, const char *p return 0; } - if(!is_chanop(msptr) && !IsOverride(source_p)) + if(!is_chanop(msptr)) { if(MyConnect(source_p)) { diff --git a/modules/core/m_message.c b/modules/core/m_message.c index 052471a..a3378f1 100644 --- a/modules/core/m_message.c +++ b/modules/core/m_message.c @@ -361,8 +361,7 @@ build_target_list(int p_or_n, const char *command, struct Client *client_p, msptr = find_channel_membership(chptr, source_p); - if(!IsServer(source_p) && !IsService(source_p) && !is_chanop_voiced(msptr) - && !IsOverride(source_p)) + if(!IsServer(source_p) && !IsService(source_p) && !is_chanop_voiced(msptr)) { sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED), get_id(&me, source_p), diff --git a/modules/m_topic.c b/modules/m_topic.c index 001a5e1..3eee639 100644 --- a/modules/m_topic.c +++ b/modules/m_topic.c @@ -114,7 +114,7 @@ m_topic(struct Client *client_p, struct Client *source_p, int parc, const char * return 0; } - if((chptr->mode.mode & MODE_TOPICLIMIT) == 0 || is_chanop(msptr) || IsOverride(source_p)) + if((chptr->mode.mode & MODE_TOPICLIMIT) == 0 || is_chanop(msptr)) { char topic_info[USERHOST_REPLYLEN]; diff --git a/src/channel.c b/src/channel.c index b5994d7..d00be83 100644 --- a/src/channel.c +++ b/src/channel.c @@ -725,9 +725,6 @@ can_join(struct Client *source_p, struct Channel *chptr, char *key) s_assert(source_p->localClient != NULL); - if(IsOverride(source_p)) - return 0; - rb_sprintf(src_host, "%s!%s@%s", source_p->name, source_p->username, source_p->host); rb_sprintf(src_iphost, "%s!%s@%s", source_p->name, source_p->username, source_p->sockhost); if(source_p->localClient->mangledhost != NULL) @@ -850,9 +847,6 @@ can_send(struct Channel *chptr, struct Client *source_p, struct membership *mspt if(is_chanop_voiced(msptr)) return CAN_SEND_OPV; - if(IsOverride(source_p)) - return CAN_SEND_NONOP; - if(chptr->mode.mode & MODE_MODERATED) return CAN_SEND_NO; @@ -885,7 +879,7 @@ find_bannickchange_channel(struct Client *client_p) char src_host[NICKLEN + USERLEN + HOSTLEN + 6]; char src_iphost[NICKLEN + USERLEN + HOSTLEN + 6]; - if (!MyClient(client_p) || IsOverride(client_p)) + if (!MyClient(client_p)) return NULL; rb_sprintf(src_host, "%s!%s@%s", client_p->name, client_p->username, client_p->host); diff --git a/src/chmode.c b/src/chmode.c index c00806a..2319c51 100644 --- a/src/chmode.c +++ b/src/chmode.c @@ -175,7 +175,7 @@ find_cflag_slot(void) static int get_channel_access(struct Client *source_p, struct membership *msptr) { - if(!MyClient(source_p) || is_chanop(msptr) || IsOverride(source_p)) + if(!MyClient(source_p) || is_chanop(msptr)) return CHFL_CHANOP; return CHFL_PEON; diff --git a/src/s_user.c b/src/s_user.c index fccd29d..441012c 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -109,7 +109,7 @@ int user_modes[256] = { 0, /* m */ 0, /* n */ UMODE_OPER, /* o */ - UMODE_OVERRIDE, /* p */ + 0, /* p */ 0, /* q */ 0, /* r */ UMODE_SERVNOTICE, /* s */ @@ -1138,12 +1138,6 @@ user_mode(struct Client *client_p, struct Client *source_p, int parc, const char source_p->umodes &= ~UMODE_ADMIN; } - if(MyConnect(source_p) && (source_p->umodes & UMODE_OVERRIDE) && (!IsOperOverride(source_p))) - { - sendto_one_notice(source_p, ":*** You need oper and the override flag for +p"); - source_p->umodes &= ~UMODE_OVERRIDE; - } - /* let modules providing usermodes know that we've changed our usermode --nenolod */ hdata.client = source_p; hdata.oldumodes = setflags;