ソースを参照

* Cmd_chanset for +/-inactive now requires global n|-

svn: 501
Bryan Drewery 22 年 前
コミット
c514921fc1
2 ファイル変更4 行追加0 行削除
  1. 1 0
      doc/UPDATES
  2. 3 0
      src/mod/channels.mod/cmdschan.c

+ 1 - 0
doc/UPDATES

@@ -20,6 +20,7 @@ This is a summary of ChangeLog basically.
 17.Log order in cmd_chaninfo was wrong.
 18.cmd_mop didn't check for n| with '*' as a chan.
 19.Added help entry for cmd_whom.
+20.chanset #chan +/-inactive now requires global n|-
 
 1.0.13
 1.Fixed a fatal bug in console_gotshare()

+ 3 - 0
src/mod/channels.mod/cmdschan.c

@@ -1718,6 +1718,9 @@ static void cmd_chanset(struct userrec *u, int idx, char *par)
 	} 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);
 	  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);
+	  return;
         }
 	if (!chan) {
 	  if (par[0])