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 #
}
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