Sfoglia il codice sorgente

Add files via upload

Daniel Voipan 5 anni fa
parent
commit
7f178d8599
2 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. 1 0
      BlackTools/Modules/BT.Idle.tcl
  2. 7 0
      BlackTools/Modules/BT.SecureMode.tcl

+ 1 - 0
BlackTools/Modules/BT.Idle.tcl

@@ -213,6 +213,7 @@ proc antidle:module {chans} {
 	set channels ""
 foreach chan $chans {
 if {[validchan $chan]} {
+if {[info exists black(secure_mode:$chan)]} {continue}
 	lappend channels $chan
 		}
 	}

+ 7 - 0
BlackTools/Modules/BT.SecureMode.tcl

@@ -82,6 +82,13 @@ if {[onchan $botnick $chan]} {
 	set chanmode [getchanmode $chan]
 if {[string match -nocase "*D*" $chanmode] && [string match -nocase "*m*" $chanmode]} {
 	set secure_act 1
+if {![info exists black(secure_mode:$chan)]} {
+	set black(secure_mode:$chan) 1
+}
+			} else {
+if {[info exists black(secure_mode:$chan)]} {
+	unset black(secure_mode:$chan)
+				}		
 			}
 		}	
 	}