Channel clearer

By Master-Of-Death on Aug 09, 2009

Just type /empty and enjoy you must be aop or higher to use it.

Please do comment.

UPDATED

alias empty {
if ($me isop #) && ($nick(#,0) !== 1) && ($nick(#,1) !== $me) goto kick
elseif ($me isop #) && ($nick(#,0) == 1) echo -a You Own #
 halt
:kick
raw -q kick # $nick(#,1) Mass Kick
if ($me isop #) && ($nick(#,0) !== 1) && ($nick(#,1) !== $me) goto kick
else echo -a You Own #
}

Comments

Sign in to comment.
sunslayer   -  Aug 09, 2009

if your network uses UnrealIRCD u can do /cs clear # users

 Respond  
jaystew   -  Aug 09, 2009

ok i placed it in my editor on typing /empty error message Empty unknow command

 Respond  
Master-Of-Death   -  Aug 09, 2009

if the script is being used with a bot it'll not kick the bot but will kick you.

 Respond  
jaystew   -  Aug 09, 2009

no it didnt kick the bot, it should of kicked the bot and not me?

 Respond  
Master-Of-Death   -  Aug 09, 2009

so it worked?

 Respond  
jaystew   -  Aug 09, 2009

nope left my bot in the room, i deopped the bot still didnt kick it, returns no error messages

 Respond  
Master-Of-Death   -  Aug 09, 2009

did the changes work?
if so paste the kick logs here pls

 Respond  
jaystew   -  Aug 09, 2009

lol

 Respond  
Master-Of-Death   -  Aug 09, 2009

my work always is lol

 Respond  
jaystew   -  Aug 09, 2009

cool, Nice work :D

 Respond  
Master-Of-Death   -  Aug 09, 2009

This will stop it kicking you.

alias empty {
if ($me isop #) && ($nick(#,0) !== 1) && ($nick(#,1) !== $me) goto kick
elseif ($me isop #) && ($nick(#,0) == 1) echo -a You Own #
 halt 
:kick
raw -q kick # $nick(#,1) Mass Kick
if ($me isop #) && ($nick(#,0) !== 1) && ($nick(#,1) !== $me) goto kick
else echo -a You Own # 
}

enjoy

 Respond  
jaystew   -  Aug 09, 2009

cool i like it, be good if it didnt kick yourself as well tho. i use this one but again this also kicks me

mkb { if (!$chan) thmecho Error: You are not on a channel. | elseif ($me !isop $chan) thmecho Error: You are not a channel operator on $thmhl($chan) $+ . | elseif ($nick(#,0) == 1) thmecho Error: You are the only user on $thmhl($chan) $+ . | else { thmecho Attempting to masskick $thmhl($calc($nick(#,0) -1)) users from $thmhl($chan) $+ . | var %x = $nick(#,0) | while (%x) { if ($nick(#,%x) != $me) { mode $chan +b $address($nick(#,%x),2) | kick $chan $nick(#,%x) Mass kick: $iif($1-,$1-,Reason not specified.) } | dec %x } } } 

goes in alisases then ya type /mkb reason

[17:19] * You were kicked by Jay (Mass kick: closed)

 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.