This is snippet for bot to delete a specific ban on chan via command. Use it as: "!ub ban-mask". Ex: !ub !ident@*.com
; unban script by un1qu3 on @*:text:!ub *:#:{ if ($nick == ur nick) { if ($2 isban #) { mode # -b $2 } }
You may use the && operator to save yourself an if statement:
on @*:text:!ub *:#:{ if ($nick == ur nick) && ($2 isban #) { mode # -b $2 } }
lol I thought you said "Personal rabbit." Then when I looked at it closely, I realized it was a typo. :P
Yeah Jethro, Personal habbit. Lol.
@Jethro I edit it but anyway there is conditional for nick who can use command :D
Frenetic, compacting the code does not actually shorten it. You basically stacked it up in one line. I won't advise people to practice MSL in that fashion. It makes hard to debug and, mind you, ugly and disorganized.
You have to make sure the $2 is banned in the channel, otherwise people can enter garbage to mess with it:
on @*:text:!ub *:#:{ if ($2 isban #) { mode # -b $2 } }
on *:TEXT:!ub*:#: { if ($nick == YourNick) { mode $chan -b $2 } }
Can shorten it.