Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace eval kick_proc {
- proc proc_kick { nick uhost hand chan text } {
- set kick_v "KICK FAIL! you need @ status to do that $nick :P"
- if {![isop $nick $chan]} {putquick "KICK $chan $nick :$kick_v";return} else {
- if {[isop $nick $chan]} {return}
- set kickee [lindex $text 0]
- set kick_msg [lrange $text 1 end]
- if {$kickee == ""} {putserv "PRIVMSG $chan :and who did you wanna kick exactly...";return}
- if {$kick_msg == ""} {set kick_msg "judo kick!"}
- if {[onchan $kickee]} {
- putquick "KICK $chan $kickee :$kick_msg"
- } else { putserv "PRIVMSG $chan :FAIL! $kickee isnt even in here..." }
- }
- }
- #
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement