瀏覽代碼

Update BT.ChanCmds.tcl

added setting +disablepubcmds that will disable only commands that start with a char
BLaCkShaDoW 2 年之前
父節點
當前提交
96be951f77
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      BlackTools/Commands/BT.ChanCmds.tcl

+ 3 - 0
BlackTools/Commands/BT.ChanCmds.tcl

@@ -18,6 +18,9 @@ proc comand:chan {nick host hand chan arg} {
 global botnick wordsdir sdir black seendir count server uptime {server-online} version lastbind
 	set cmd_chan [lindex [split $arg] 0]
 	set chan1 $chan
+ if {[setting:get $chan disablepubcmds]} {
+	return
+}
 if {[isbotnick $nick]} { return }
 
 	set split_cmd [split $cmd_chan ""]