$bnick is only filled if the nick is in the ban mask, otherwise $bnick is $null.
* Robert sets mode: +b [color:red]Nick!*@axe-6B2E39AA.retail.telecomitalia.it[/color]
on *:BAN:#: {
write bans.txt $bnick ( $banmask ) was banned by $nick
}
In this case, $bnick = Nick & $nick = Robert
You'd be better off logging bans & kicks...
on *:BAN:#: {
write kbans.txt $nick banned $banmask $iif($bnick,$+($chr(40),$bnick,$chr(41))) on #
}
on *:KICK:#: {
write kbans.txt $knick as kicked from # by $nick $iif($1 != $null,with the reason: $1-)
}
Last edited by RoCk; 03/02/07 02:46 PM.