From a4f6509ce17856d4e3774a5df33f9c2595349cb5 Mon Sep 17 00:00:00 2001 From: JD Horelick Date: Thu, 25 Feb 2010 16:15:17 -0500 Subject: [PATCH] more override stuff --- modules/m_invite.c | 2 +- src/chmode.c | 2 +- src/newconf.c | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/m_invite.c b/modules/m_invite.c index 6ed4471..7eef5c0 100644 --- a/modules/m_invite.c +++ b/modules/m_invite.c @@ -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), 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/newconf.c b/src/newconf.c index 28ba01e..c17f621 100644 --- a/src/newconf.c +++ b/src/newconf.c @@ -306,6 +306,7 @@ static struct mode_table umode_table[] = { {"noctcp", UMODE_NOCTCP }, {"noinvite", UMODE_NOINVITE }, {"bot", UMODE_BOT }, + {"override", UMODE_OVERRIDE }, {NULL, 0} };