fixed unused variable warning
[srvx.git] / src / chanserv.c
index 9b5468136f223b03e6346c44bd128d45366605ed..a0aca8e93cba58d3bbbb6a5104b91616b34253a1 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;
@@ -3239,7 +3239,6 @@ static CHANSERV_FUNC(cmd_devoice)
 static CHANSERV_FUNC(cmd_opme)
 {
     struct mod_chanmode change;
-    struct userData *uData;
     const char *errmsg;
 
     mod_chanmode_init(&change);