Kick Alias

By Joel-Kun on May 13, 2008

This is pretty much a simple as hell kicking alias I whipped up in like a minute. You just put it in remote (duh) and type /ki on a channel where someone is annoying you. Then just do what the boxes ask you, and if the person's name you entered isn't on the channel, it won't work (But that's pretty obvious), and it asks if you wanna ban the person too :| Good luck and enjoy :P

alias ki {
  set %victim $?="Who would you like to kick?"
  set %kickmessage $?="What is your message to %victim $+ ?"
  set %ban $?!="Would you like to ban %victim $+ ?(Yes or No)"
if ($me isreg $chan) {
unset %victim
unset %kickmessage
unset %ban
halt
}
if ($me !isreg $chan) {
  if (%victim !ison $chan) {
    unset %victim
    unset %kickmessage
    unset %ban
    halt
  }
  if (%ban == $true) {
    mode # +b %victim
    kick # %victim %kickmessage
  }
  if (%ban == $false) {
    kick # %victim %kickmessage
  }
  unset %victim
  unset %kickmessage
  unset %ban
}
}

Comments

Sign in to comment.
findfriend   -  Sep 03, 2009

nappa , nice the code. :)

 Respond  
napa182   -  May 13, 2008

you can do it like this as well

alias ki {
  if ($me isreg $chan) { halt }
  else {
    var %victim $$?=\"Who would you like to kick?\", %kickmessage $$?=\"What is your message to %victim $+ ?\", %ban $?!=\"Would you like to ban %victim $+ ?(Yes or No)\"
    if (%victim ison $chan) { 
      if (%ban) { ban -k # %victim 2 %kickmessage }
      else { kick # %victim %kickmessage }
    }
  }
}
 Respond  
guest598594   -  May 13, 2008

Couple suggestions:

1) you can do \"unset %var %var2 %var3\" rather than three lines
2) I would just do \"if ($me !isreg $chan) { ;ask for inputs | ;kick etc }\"
3) since you use \"kick # %victim %kickmessage\", you can just leave that outside the if\'s and do \"if (%ban) mode # +b %victim\"

 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.