Another way you could do this is
- Code: Select all
on $*:TEXT:/^.(kick|ban|kb|moderate|unmod|rules)/Si:#:{
if ( $nick isop $chan || $me isop $chan ) {
if ($regml(1) == kick) { kick $chan $2 $3- | notice $nick $2 has been kicked! }
if ($regml(1) == ban) { mode $chan +b $address($2,2) | notice $nick $2 has been banned }
if ($regml(1) == kb) { mode $chan +b $address($2,2) | kick $chan $2 $2- | notice $nick $2 has been kicked and banned }
if ($regml(1) == moderate) { mode $chan +m | msg $chan This Channel is now under moderation, only voice + users can talk! }
if ($regml(1) == unmod) { mode $chan -m | msg $chan The moderation has now ended, Please Follow the Rules }
}
if ($regml(1) == rules) {
notice $nick Rule 1: blah
notice $nick Rule 2: Meh
}
}
Also no need for all the / as mIRC will evaluate the identifiers as it's a remote script.
NOTE: This is untested.. But should still work.