Prechádzať zdrojové kódy

Update BT.ChanCmds.tcl

added setting +disablepubcmds that will disable only commands that start with a char
BLaCkShaDoW 2 rokov pred
rodič
commit
96be951f77
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  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 ""]