Guest User

Untitled

a guest
Jun 20th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. set conf(port) 35789
  2. set conf(chan) "#09source"
  3. set conf(pass) "bWFtYWFyZW1lcmU"
  4.  
  5. listen $conf(port) script idle:listen
  6.  
  7. proc idle:listen {idx} {
  8. control $idx idle:process
  9. }
  10.  
  11. proc idle:process {idx args} {
  12. global conf
  13.  
  14. set args [join $args]
  15. set password [lindex [split $args] 0]
  16. set message [join [lrange [split $args] 1 end]]
  17.  
  18. if {[string match $password $conf(pass)]} {
  19. putquick "PRIVMSG $conf(chan) : $message"
  20. }
  21. }
  22.  
  23. putlog "New announce script loaded!"
Add Comment
Please, Sign In to add comment