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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user