1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-06 18:43:12 +02:00

Duplicate error messages when trying to set channel modes +O/+P.

Reported by FwdInTime in https://bugs.unrealircd.org/view.php?id=4840
This commit is contained in:
Bram Matthys
2018-09-09 18:03:54 +02:00
parent 5445a009a3
commit d610dfbe9f
2 changed files with 6 additions and 3 deletions
+3 -2
View File
@@ -100,9 +100,10 @@ DLLFUNC int operonly_require_oper(aClient *cptr, aChannel *chptr, char mode, cha
if (!MyClient(cptr) || ValidatePermissionsForPath("channel:operonly",cptr,NULL,chptr,NULL))
return EX_ALLOW;
if (checkt == EXCHK_ACCESS_ERR)
sendto_one(cptr, err_str(ERR_CANNOTCHANGECHANMODE),
me.name, cptr->name, 'O', "You are not an IRC operator");
sendto_one(cptr, err_str(ERR_CANNOTCHANGECHANMODE),
me.name, cptr->name, 'O', "You are not an IRC operator");
return EX_DENY;
}
+3 -1
View File
@@ -42,7 +42,9 @@ static int permanent_is_ok(aClient *cptr, aChannel *chptr, char mode, char *para
{
if (!IsOper(cptr))
{
sendto_one(cptr, err_str(ERR_NOPRIVILEGES), me.name, cptr->name);
if (checkt == EXCHK_ACCESS_ERR)
sendto_one(cptr, err_str(ERR_NOPRIVILEGES), me.name, cptr->name);
return EX_DENY;
}