Backed out changeset 677d7b5cbbcc

This commit is contained in:
JD Horelick 2010-02-25 15:47:08 -05:00
parent c7c1673d10
commit afe430eebb
6 changed files with 6 additions and 19 deletions

View File

@ -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))
{

View File

@ -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),

View File

@ -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];

View File

@ -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);

View File

@ -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;

View File

@ -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;