allow IRC Ops unregister protected channels (nodelete override)
authorpk910 <philipp@zoelle1.de>
Sat, 15 Oct 2011 23:58:26 +0000 (01:58 +0200)
committerpk910 <philipp@zoelle1.de>
Sat, 15 Oct 2011 23:58:26 +0000 (01:58 +0200)
src/chanserv.c

index 9b5468136f223b03e6346c44bd128d45366605ed..75fbdaf31ac76354dc01eab828a43059e4bdf01f 100644 (file)
@@ -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;