So, i created an !t(emp)ban command, but it doesn't seem to work.
It gets stuck at the Syntax etc. (How to use)

Code:
oon *:leave:#: {
  if (%banned == 1)
  {
    msg $chan $nick has left the channel while being banned!
    timerunban off
  }
}
on *:join:#: {
  set %banned $+ $nick 0
}

on *:text:!tban:#: {
  if($me == isop)
  {
    if($2 == $null || $3 == $null || $4- == $null)
    {
      notice $nick [USAGE] - !tban NICK TIME REASON -- Example -- !tban azaza 50 Spam | halt
    }
    elseif($2 == $nick)
    {
      notice $nick [NOTE] - Are you really trying to ban yourself? | halt
    }
    else
    {
      msg $chan 5[BAN] 7-3 $nick 4has banned7 $2 4for:5 $4-! ( TIME: $3 )
      set %banned $+ $nick 1
      mode $chan +b $2
      timerunban 1 $3
      {
        mode $chan -b $2
        set %banned $+ $nick 0
        msg $chan 5[BAN] 7-3 $nick 4has been un-banned! (TIME EXPIRED)
        notice $2 You're unbanned.
      }
    }
  }
}


Last edited by Kyance; 01/02/14 12:46 PM.