From ebcbf1f84063fc99ca38b84a16d05ffc1c2f7c7d Mon Sep 17 00:00:00 2001 From: luke Date: Tue, 16 Apr 2002 16:52:52 +0000 Subject: [PATCH] More operoverride code --- src/channel.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/channel.c b/src/channel.c index 67c5f2343..37ce0459d 100644 --- a/src/channel.c +++ b/src/channel.c @@ -2354,15 +2354,26 @@ void over_notice(aClient *cptr, aClient *sptr, aChannel *chptr, char *key) { sendto_umode(UMODE_EYES, "*** OperOverride -- %s (%s@%s) BANWALK %s",sptr->name, sptr->user->username, sptr->user->realhost, chptr->chname); - } else if (IsOper(sptr) && !IsULine(sptr) && *chptr->mode.key && (BadPtr(key) || + } + else if (IsOper(sptr) && !IsULine(sptr) && *chptr->mode.key && (BadPtr(key) || mycmp(chptr->mode.key, key))) { sendto_umode(UMODE_EYES, "*** OperOverride -- %s (%s@%s) KEYWALK %s",sptr->name, sptr->user->username, sptr->user->realhost, chptr->chname); - } else if (IsOper(sptr) && !IsULine(sptr) && (chptr->mode.mode & MODE_INVITEONLY) && !lp) { + } + else if (IsOper(sptr) && !IsULine(sptr) && (chptr->mode.mode & MODE_INVITEONLY) && !lp) { sendto_umode(UMODE_EYES, "*** OperOverride -- %s (%s@%s) INVITEWALK %s",sptr->name, sptr->user->username, sptr->user->realhost, chptr->chname); } - + else if (IsOper(sptr) && !IsUline(sptr) && (chptr->mode.mode & MODE_RGSTRONLY) && + !IsARegNick(sptr)) { + sendto_umode(UMODE_EYES, "*** OperOverride -- %s (%s@%s) REGNICKWALK %s",sptr->name, + sptr->user->username, sptr->user->realhost, chptr->chname); + } + else if (IsOper(sptr) && !IsUline(sptr) && (chptr->mode.limit && chptr->users >= chptr->mode.limit)) + { + sendto_umode(UMODE_EYES, "*** OperOverride -- %s (%s@%s) LIMITWALK %s",sptr->name, + sptr->user->username, sptr->user->realhost, chptr->chname); + } } /*