Originally Posted By: Karotte
hey guys, can you help me?

i got this script:

on *:text:!top10:#: {
if ($nick != isop) {
if ((%floodcommand) || ($($+(%,floodcommand.,$nick),2))) { return }
set -u120 %floodcommand On
set -u10 %floodcommand. $+ $nick
msg $chan !top 10
}
}

the part with "if nick is op" is not correct i guess...my problem is -> the bot should write !top 10 when USER write !top 10, but NOT when mods write !top 10, so is there a function called NOT OPERATOR? != isop?


The syntax of the test for whether a person is an operator in a channel should be written as follows, per the mIRC help file:
Code:
if ( $nick isop $chan ) { ... }

Since you want to test for the person not being an operator, use the ! prefix:
Code:
if ( $nick !isop $chan ) { ... }