Explorar o código

* Port [3439] to 1.2.14
* Only allow +n to chanset +/-backup


svn: 3440

Bryan Drewery %!s(int64=19) %!d(string=hai) anos
pai
achega
5720d9cb9f
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      src/mod/channels.mod/cmdschan.c

+ 5 - 2
src/mod/channels.mod/cmdschan.c

@@ -1304,10 +1304,13 @@ static void cmd_chanset(int idx, char *par)
         dprintf(idx, "No such channel.\n");
 	return;
       } else if ((strstr(par, "+private") || strstr(par, "-private")) && (!glob_owner(user))) {
-        dprintf(idx, "You don't have access to set +/-private on %s (halting command due to lazy coder).\n", chname);
+        dprintf(idx, "You don't have access to set +/-private on %s (halting command).\n", chname);
+	return;
+      } else if ((strstr(par, "+backup") || strstr(par, "-backup")) && (!glob_owner(user))) {
+        dprintf(idx, "You don't have access to set +/-backup on %s (halting command).\n", chname);
 	return;
       } else if ((strstr(par, "+inactive") || strstr(par, "-inactive")) && (!glob_owner(user))) {
-        dprintf(idx, "You don't have access to set +/-inactive on %s (halting command due to lazy coder).\n", chname);
+        dprintf(idx, "You don't have access to set +/-inactive on %s (halting command).\n", chname);
         return;
       }
       if (!chan) {