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

Don't send OperOverride notice if &me (server)

[skip ci]
This commit is contained in:
Bram Matthys
2019-09-07 11:05:25 +02:00
parent c6cfc2f5c8
commit ab0608a98c
+2 -2
View File
@@ -471,7 +471,7 @@ void _do_mode(aChannel *chptr, aClient *cptr, aClient *sptr, MessageTag *recv_mt
/* opermode for twimodesystem --sts */
#ifndef NO_OPEROVERRIDE
if (opermode == 1)
if ((opermode == 1) && IsPerson(sptr))
{
if (modebuf[1])
{
@@ -1535,7 +1535,7 @@ void _set_mode(aChannel *chptr, aClient *cptr, int parc, char *parv[], u_int *pc
make_mode_str(chptr, oldm, oldem, oldl, *pcount, pvar, modebuf, parabuf, sizeof(modebuf), sizeof(parabuf), bounce);
#ifndef NO_OPEROVERRIDE
if (htrig == 1)
if ((htrig == 1) && IsPerson(cptr))
{
/* This is horrible. Just horrible. */
if (!((modebuf[0] == '+' || modebuf[0] == '-') && modebuf[1] == '\0'))