Guest User

Untitled

a guest
May 11th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.61 KB | None | 0 0
  1. bind pub - `ship _shipnicks
  2.  
  3. proc _shipnicks { nick uhost handle chan args } {
  4.  
  5.      catch { set nick "[ lindex $args 0 ] $nick" }
  6.      set nicks [ chanlist $chan ]
  7.      set shipnick [ expr { int(ceil(rand()*[ llength $nicks ])) - 1 } ]
  8.      variable 1 [ lindex $nick 0 ] 2 [ lindex $nicks $shipnick ]
  9.  
  10.      #set shipmsgs {
  11.  
  12.      #    "I think $1 should be shipped with $2!"
  13.  
  14.      #}
  15.  
  16.      #set shipmsg [ expr { int(ceil(rand()*[ llength $shipmsgs ])) - 1 } ]
  17.      
  18.      puthelp "PRIVMSG $chan :I think $1 should be shipped with $2!"
  19.      #puthelp "PRIVMSG $chan :[ eval [ lindex $shipmsgs $shipmsg ] ]"
  20.  
  21. }
Add Comment
Please, Sign In to add comment