1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-05 03:53:13 +02:00

Added +N oper override notices

This commit is contained in:
luke
2002-05-27 17:19:32 +00:00
parent 3f4fd52cff
commit b818e63a09
+36 -11
View File
@@ -1608,19 +1608,44 @@ int m_nick(cptr, sptr, parc, parv)
for (lp = cptr->user->channel; lp; lp = lp->next) {
if (is_banned(cptr, &me, lp->value.chptr))
{
sendto_one(cptr,
err_str(ERR_BANNICKCHANGE),
me.name, parv[0],
lp->value.chptr->chname);
return 0;
/* Horrible hack to add operoverride notification for +N channels --Luke */
#ifndef NO_OPEROVERRIDE
if (IsOper(cptr))
{
sendto_umode(UMODE_EYES, "*** OperOverride -- %s (%s@%s) BANWALK %s",
cptr->name, cptr->user->username, cptr->user->realhost,
lp->value.chptr->chname);
}
else {
#endif
sendto_one(cptr,
err_str(ERR_BANNICKCHANGE),
me.name, parv[0],
lp->value.chptr->chname);
return 0;
#ifndef NO_OPEROVERRIDE
}
#endif
}
if (!IsOper(cptr) && !IsULine(cptr) && lp->value.chptr->mode.mode &
if (!IsULine(cptr) && lp->value.chptr->mode.mode &
MODE_NONICKCHANGE && !is_chanownprotop(cptr, lp->value.chptr)) {
sendto_one(cptr,
err_str(ERR_NONICKCHANGE),
me.name, parv[0],
lp->value.chptr->chname);
return 0;
#ifndef NO_OPEROVERRIDE
if (IsOper(cptr))
{
sendto_umode(UMODE_EYES, "*** OperOverride -- %s (%s@%s) NICKWALK %s",
cptr->name, cptr->user->username, cptr->user->realhost,
lp->value.chptr->chname);
}
else {
#endif
sendto_one(cptr,
err_str(ERR_NONICKCHANGE),
me.name, parv[0],
lp->value.chptr->chname);
return 0;
#ifndef NO_OPEROVERRIDE
}
#endif
}
}
/*