Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. namespace eval kick_proc {
  2. proc proc_kick { nick uhost hand chan text } {
  3.  
  4. set kick_v "KICK FAIL! you need @ status to do that $nick :P"
  5. if {![isop $nick $chan]} {putquick "KICK $chan $nick :$kick_v";return} else {
  6. if {[isop $nick $chan]} {return}
  7.  
  8. set kickee [lindex $text 0]
  9. set kick_msg [lrange $text 1 end]
  10.  
  11. if {$kickee == ""} {putserv "PRIVMSG $chan :and who did you wanna kick exactly...";return}
  12. if {$kick_msg == ""} {set kick_msg "judo kick!"}
  13.  
  14. if {[onchan $kickee]} {
  15. putquick "KICK $chan $kickee :$kick_msg"
  16. } else { putserv "PRIVMSG $chan :FAIL! $kickee isnt even in here..." }
  17. }
  18. }
  19. #
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement