From 5e27836e6f17dce96085689b0fa3797fb4aa2869 Mon Sep 17 00:00:00 2001 From: pk910 Date: Sun, 16 Oct 2011 01:58:26 +0200 Subject: [PATCH] allow IRC Ops unregister protected channels (nodelete override) --- src/chanserv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chanserv.c b/src/chanserv.c index 9b54681..75fbdaf 100644 --- a/src/chanserv.c +++ b/src/chanserv.c @@ -2285,7 +2285,7 @@ static CHANSERV_FUNC(cmd_unregister) return 0; } - if(IsProtected(cData)) + if(IsProtected(cData) && !IsOper(user)) { reply("CSMSG_UNREG_NODELETE", channel->name); return 0; -- 2.20.1