소스 검색

Update BT.OwnerCmds.tcl

Daniel Voipan 5 년 전
부모
커밋
7ed97371ec
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      BlackTools/Commands/BT.OwnerCmds.tcl

+ 4 - 2
BlackTools/Commands/BT.OwnerCmds.tcl

@@ -30,19 +30,21 @@ if {$cmd_status == "1"} {
 }
 switch $what {
 	on {
-	set out [blacktools:update_on_off 1]
+	set out [blacktools:update_on_off 0]
 if {$out == 1} {
 	blacktools:tell $nick $host $hand $chan $chan1 autoupdate.35 ""
 } elseif {$out == 3} {
 	blacktools:tell $nick $host $hand $chan $chan1 autoupdate.36 ""
+	rehash
 }
 	}
 	off {
-	set out [blacktools:update_on_off 0]
+	set out [blacktools:update_on_off 1]
 if {$out == 0} {
 	blacktools:tell $nick $host $hand $chan $chan1 autoupdate.37 ""
 } elseif {$out == 2} {
 	blacktools:tell $nick $host $hand $chan $chan1 autoupdate.38 ""
+	rehash
 }
 	}
 	time {