Made -qaohv on +S require +N

This commit is contained in:
codemastr 2004-02-05 22:58:24 +00:00
parent 4d2de582f1
commit 45c557f0ec
2 changed files with 12 additions and 0 deletions

View file

@ -2815,3 +2815,5 @@ seen. gmtime warning still there
called which might look a bit ugly, but is better than before (scattered on 3 places).
- Added snomasks 'N' which allows you to see nick changes of clients on other servers,
requested by several people (#0001323).
- Made setting of -qaohv etc on services (+S) not possible unless you are a netadmin (purpose
is to prevent people from deoping BotServ bots). Suggested by shiny (#0000917)

View file

@ -2134,6 +2134,16 @@ int do_mode_char(aChannel *chptr, long modetype, char modechar, char *param,
/* we make the rules, we bend the rules */
if (IsServer(cptr) || IsULine(cptr))
goto breaktherules;
/* Services are special! */
if (IsServices(member->cptr) && MyClient(cptr) && !IsNetAdmin(cptr))
{
sendto_one(cptr,
":%s %s %s :*** You cannot %s %s in %s, it is a network service",
me.name, IsWebTV(cptr) ? "PRIVMSG" : "NOTICE",
cptr->name, xxx, member->cptr->name, chptr->chname);
break;
}
if (is_chanowner(member->cptr, chptr)
&& member->cptr != cptr