Backed out changeset 677d7b5cbbcc
This commit is contained in:
parent
c7c1673d10
commit
afe430eebb
|
@ -97,7 +97,7 @@ m_kick(struct Client *client_p, struct Client *source_p, int parc, const char *p
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!is_chanop(msptr) && !IsOverride(source_p))
|
if(!is_chanop(msptr))
|
||||||
{
|
{
|
||||||
if(MyConnect(source_p))
|
if(MyConnect(source_p))
|
||||||
{
|
{
|
||||||
|
|
|
@ -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);
|
msptr = find_channel_membership(chptr, source_p);
|
||||||
|
|
||||||
if(!IsServer(source_p) && !IsService(source_p) && !is_chanop_voiced(msptr)
|
if(!IsServer(source_p) && !IsService(source_p) && !is_chanop_voiced(msptr))
|
||||||
&& !IsOverride(source_p))
|
|
||||||
{
|
{
|
||||||
sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
|
sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
|
||||||
get_id(&me, source_p),
|
get_id(&me, source_p),
|
||||||
|
|
|
@ -114,7 +114,7 @@ m_topic(struct Client *client_p, struct Client *source_p, int parc, const char *
|
||||||
return 0;
|
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];
|
char topic_info[USERHOST_REPLYLEN];
|
||||||
|
|
||||||
|
|
|
@ -725,9 +725,6 @@ can_join(struct Client *source_p, struct Channel *chptr, char *key)
|
||||||
|
|
||||||
s_assert(source_p->localClient != NULL);
|
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_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);
|
rb_sprintf(src_iphost, "%s!%s@%s", source_p->name, source_p->username, source_p->sockhost);
|
||||||
if(source_p->localClient->mangledhost != NULL)
|
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))
|
if(is_chanop_voiced(msptr))
|
||||||
return CAN_SEND_OPV;
|
return CAN_SEND_OPV;
|
||||||
|
|
||||||
if(IsOverride(source_p))
|
|
||||||
return CAN_SEND_NONOP;
|
|
||||||
|
|
||||||
if(chptr->mode.mode & MODE_MODERATED)
|
if(chptr->mode.mode & MODE_MODERATED)
|
||||||
return CAN_SEND_NO;
|
return CAN_SEND_NO;
|
||||||
|
|
||||||
|
@ -885,7 +879,7 @@ find_bannickchange_channel(struct Client *client_p)
|
||||||
char src_host[NICKLEN + USERLEN + HOSTLEN + 6];
|
char src_host[NICKLEN + USERLEN + HOSTLEN + 6];
|
||||||
char src_iphost[NICKLEN + USERLEN + HOSTLEN + 6];
|
char src_iphost[NICKLEN + USERLEN + HOSTLEN + 6];
|
||||||
|
|
||||||
if (!MyClient(client_p) || IsOverride(client_p))
|
if (!MyClient(client_p))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
rb_sprintf(src_host, "%s!%s@%s", client_p->name, client_p->username, client_p->host);
|
rb_sprintf(src_host, "%s!%s@%s", client_p->name, client_p->username, client_p->host);
|
||||||
|
|
|
@ -175,7 +175,7 @@ find_cflag_slot(void)
|
||||||
static int
|
static int
|
||||||
get_channel_access(struct Client *source_p, struct membership *msptr)
|
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_CHANOP;
|
||||||
|
|
||||||
return CHFL_PEON;
|
return CHFL_PEON;
|
||||||
|
|
|
@ -109,7 +109,7 @@ int user_modes[256] = {
|
||||||
0, /* m */
|
0, /* m */
|
||||||
0, /* n */
|
0, /* n */
|
||||||
UMODE_OPER, /* o */
|
UMODE_OPER, /* o */
|
||||||
UMODE_OVERRIDE, /* p */
|
0, /* p */
|
||||||
0, /* q */
|
0, /* q */
|
||||||
0, /* r */
|
0, /* r */
|
||||||
UMODE_SERVNOTICE, /* s */
|
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;
|
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 */
|
/* let modules providing usermodes know that we've changed our usermode --nenolod */
|
||||||
hdata.client = source_p;
|
hdata.client = source_p;
|
||||||
hdata.oldumodes = setflags;
|
hdata.oldumodes = setflags;
|
||||||
|
|
Loading…
Reference in New Issue