Simple Commandline Kickban

By SpaceCat on Mar 02, 2006

    • Simple Commandline Kickban

Hello this is my first snippet on hawkee and well even though its pretty simple it's useful to quickly kickban someone. The ban type used on this snippet is a type 3 you can modify it.
You can include this snippet in your script but I want some credits for it Please don't remove the commented lines :) Is the least you can do :) Thanks!

IMPORTANT

PASTE THIS IN THE ALIASES SECTION. NOT REMOTES!!!!!

;Commandline Kickban. Author: SpaceCat
;Web: www.galaxy.n3t.nl
;e-mail: galaxymircscript@yahoo.co.uk
;# IMPORTANT # 
;PASTE THIS IN THE *ALIASES* SECTION. NOT REMOTES!!!!!
;(or modify it to be "alias kickban {")

kickban { 
set %kbnick $$1 
set %kbreason $2- | ban %kbnick 3 | kick # %kbnick %kbreason
unset %kbnick
unset %kbreason
}

Comments

Sign in to comment.
SpaceCat   -  Mar 02, 2006

haha ok the addon has been tested and it works that\'s the main idea :)

 Respond  
sladekraven   -  Mar 02, 2006

That $nick should be $$1. $chan can be # for short.
It\'s kinda late.

Yours would be nice if their versions didn\'t support the \"-k\" switch I\'d also suggest using:

kickban {
var %kbnick = $$1, %kbreason = $2-
ban %kbnick 3 | kick # %kbnick %kbreason
}

That way you don\'t need to unset the vars.

 Respond  
sladekraven   -  Mar 02, 2006

What about:

kickban { ban -k $chan $nick 3 $2- }

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.