Quick Kick Ban with Timer

By SharkEyes09 on Jun 01, 2009

A very quick and easy way to Kick Ban a NICK with an optional timer.
Post in your Aliases.

Part 1

Command
/kb <TIME - Minutes - Optional> <REASON - Optional>

Steps
• Kicks NICK with REASON
• Bans NICK
• Ignores NICK to stop harassment
• Sets the time
• If you set a time, Unbans NICK after TIME
• If you set a time, Invites NICK to the channel
• Un-Ignores NICK

Part 2
If you didn't set a time

Command
/unban NICK

Steps
• Unbans NICK
• Un-Ignores NICK
• Invites NICK to the channel (if still online)

/kb { 
  /kick # $$1 $3-
  /mode # +b $$1
  /ignore $$1
  /set %time $calc($2 * 60)
  if (%time > 0) {
    /timerkb 1 %time /mode # -b $$1
    /timerkb1 1 $calc(1 + %time) /invite $$1 #
    /timerkb1 1 $calc(2 + %time) /ignore -r $$1
  }
  unset %time
}

/unban { 
  /mode # -b $$1
  /ignore -r $$1
  /invite $$1 #
}

Comments

Sign in to comment.
WorldDMT   -  Jun 03, 2009

@napa182:

that made me laugh..
you come off a bit harsh and kinda a prick in the way you word things.

i dont speak english verry well i speak french

SharkEyes09 write TIME - Minutes - Optional and into the code we see only $3-

that is not wrong??

 Respond  
napa182   -  Jun 02, 2009

WorldDMT Said:

hi

[quote]/kb <TIME - Minutes - Optional> <REASON - Optional>

Wrong!![/quote]

that made me laugh..
you come off a bit harsh and kinda a prick in the way you word things.

 Respond  
WorldDMT   -  Jun 02, 2009

hi

/kb <TIME - Minutes - Optional> <REASON - Optional>

Wrong!!

if u dont put the time the reason will have the first word missing and somme error format $calc

batter do that code like this

alias kb {
  if ($1 ison #) {
    var %t $iif(($2) && ($2 isnum),u $+ $calc($2 * 60))
    ban -k $+ %t # $1 2 $iif(!%t,$2-,$3-)
    ignore $iif(%t,- $+ %t) $1
    if (%t) timerkb 1 $2 invite $1 #
  }
}
alias unban {
  mode # -b $address($1,2)
  ignore -r $1
  invite $1 #
}

put it into remote

 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.