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

Add missing permission error message as reported in rabbitircd

This is the exact commit I made to rabbitircd two years ago. Since the permission error is still missing, why not port it back to unrealircd. :)
This commit is contained in:
dboyz
2015-04-22 07:44:53 +08:00
parent e535637621
commit 42214ebdf3
+6 -3
View File
@@ -44,10 +44,13 @@ static void permanent_channel_destroy(aChannel *chptr, bool *should_destroy)
static int permanent_is_ok(aClient *cptr, aChannel *chptr, char mode, char *para, int checkt, int what)
{
if (IsOper(cptr))
return EX_ALLOW;
if (!IsOper(cptr))
{
sendto_one(cptr, err_str(ERR_NOPRIVILEGES), me.name, cptr->name);
return EX_DENY;
}
return EX_DENY;
return EX_ALLOW;
}
/* This is called on module init, before Server Ready */