more override stuff
This commit is contained in:
parent
13a467bb98
commit
a4f6509ce1
|
@ -145,7 +145,7 @@ m_invite(struct Client *client_p, struct Client *source_p, int parc, const char
|
||||||
|
|
||||||
/* unconditionally require ops, unless the channel is +g */
|
/* unconditionally require ops, unless the channel is +g */
|
||||||
/* treat remote clients as chanops */
|
/* treat remote clients as chanops */
|
||||||
if(MyClient(source_p) && !is_chanop(msptr) &&
|
if(MyClient(source_p) && !is_chanop(msptr) && !IsOverride(source_p) &&
|
||||||
!(chptr->mode.mode & MODE_FREEINVITE))
|
!(chptr->mode.mode & MODE_FREEINVITE))
|
||||||
{
|
{
|
||||||
sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
|
sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -306,6 +306,7 @@ static struct mode_table umode_table[] = {
|
||||||
{"noctcp", UMODE_NOCTCP },
|
{"noctcp", UMODE_NOCTCP },
|
||||||
{"noinvite", UMODE_NOINVITE },
|
{"noinvite", UMODE_NOINVITE },
|
||||||
{"bot", UMODE_BOT },
|
{"bot", UMODE_BOT },
|
||||||
|
{"override", UMODE_OVERRIDE },
|
||||||
{NULL, 0}
|
{NULL, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue