You can combine some of these if statements. Example:
if ($nick isop $chan || $nick ishop $chan) {
notice $2 you now have a strike...
notice $nick you have issued a strike...
}
And then with
if (%strike. [ $+ [ $2- ] ] == 3) notice $nick $2- has 3 strikes, which is kbable, so go ahead
if (%strike. [ $+ [ $2- ] ] == 3) set %strike. [ $+ [ $2- ] ]
You can combine them:
if (%strike. [ $+ [ $2- ] ] == 3) {
notice $nick $2- has 3 strikes, which is kbable, so go ahead
set %strike. [ $+ [ $2- ] ]
}
Just use brackets { } and you can put multiple things in one if statement.