more override stuff

This commit is contained in:
JD Horelick 2010-02-25 16:15:17 -05:00
parent 13a467bb98
commit a4f6509ce1
3 changed files with 3 additions and 2 deletions

View File

@ -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 */
/* 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))
{
sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),

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

@ -306,6 +306,7 @@ static struct mode_table umode_table[] = {
{"noctcp", UMODE_NOCTCP },
{"noinvite", UMODE_NOINVITE },
{"bot", UMODE_BOT },
{"override", UMODE_OVERRIDE },
{NULL, 0}
};