Let me try detail with little code,
Debug way;
alias debug_test {
tokenize 32 $1-
if (($1 = <- && $3 = PRIVMSG) && ($4 ischan)) {
var %nick = $right($token($2,1,33),-1)
var %text = $right($5-,-1)
if (testing isin %text) {
ban -k $4 %nick 2 banned.
}
}
}
/debug -i debug_test
The -i switch calls the specified identifier before a debug line is logged. The return value of the identifier is used as the debug line.
Event way;
on *:text:testing:#:{ ban -k $chan $nick 2 banned. }
Right it looks event shorter actually, but im asking is the debug way would improve the code to better or faster ?