Guest User

Untitled

a guest
Nov 26th, 2017
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.80 KB | None | 0 0
  1. set my "0"
  2. set npu "0"
  3.  
  4. bind pub - fullv fullv
  5. proc fullv {nick host hand chan t} {
  6.   global my npu
  7.   if { $nick == "My1" } {
  8.     set nl "[chanlist $chan]"
  9.     for { set i 0 } { $i < [llength $nl] } { incr i } {
  10.       putquick "MODE $chan +v [lindex $nl $i]"
  11.       if {$chan == "#my1-fcs" } {
  12.         set my "1"
  13.         putquick "MODE #my1-fcs +m"
  14.       }
  15.       if {$chan == "#npu" } {
  16.         set npu "1"
  17.         putquick "MODE #npu +m"
  18.         puthelp "privmsg $nick :NPU fullv ist auf $npu"
  19.       }
  20.     }
  21.   }
  22. }
  23.  
  24. bind join "#my1-fcs *" vmy
  25. proc vmy {nick host hand chan} {
  26.   global my
  27.   if { $my=="1" } {
  28.     putquick "MODE #my1-fcs +v $nick"
  29.   }
  30. }
  31.  
  32. bind join "#npu *!*@*" vnpu
  33. proc vnpu {nick host hand chan} {
  34.   global npu
  35.   if { $npu=="1" } {
  36.     putquick "MODE #npu +v $nick"
  37.   }
  38. }
Add Comment
Please, Sign In to add comment