I've come up with this snippet, but what I would like it to do is, when other people select a nickname from their mirc nick list, and when he or she types in !ban, the selected person gets a kick and ban by my bot.

* So far it only works for me when I do it via my own bot, but not my hosts. I need your help to make it happen for others instead of myself.


Code:
on *:TEXT:!ban:#: {
  if ($nick isop #) {
    hadd -m banlist Room $chan
    hadd banlist $ial($snick($active,1)).user Set by $me
    msg # $utfencode($snick($active,1)) $+ 's gate: $ial($snick($active,1)).user has been added to the banlist.
    ban $chan $address($nick,2) was banned by $me on $date at $time(h:nn:ss tt) Violation.
    kick # $snick(#,1) Violation.
    hsave -o banlist banlist.txt
  }
}

on *:JOIN:*: {
  if ($hget(banlist,$ial($nick).user,1)).data { 
    kick # $nick
  }
}

Last edited by Tomao; 04/02/08 07:50 AM.