ok, when you use astericks, use "iswm", I haven't tested this script, but, i think it should work.
*note: not good with on ban at all, lol
Code:
on *:BAN:#avatarrp: {
if (*Krystal* iswm $bnick) { mode $chan -b $banmask }
if (*Crystal* iswm $bnick) { mode $chan -b $banmask }
}
Hope this works.