You know what. We don't need the rawmode event after all:
on *:ban:#: bklog $1-
on *:kick:#: bklog
alias -l bklog {
window $iif($event == kick,@kicks,@bans)
if ($event == kick) {
echo -t @kicks [kick tracker] $nick kicked $knick from $chan on $date at $time
}
else {
var %b = 1
while ($ialchan($banmask,$chan,%b).nick) {
echo -t @bans [ban logger] $nick set the following ban $1- against the user $v1 on $time $date in $chan
inc %b
}
}
}
It was as simple as adding the $1- after the event parameter.