on 1:mode:#: if (+*m* iswmcs $1) { do stuff }

...should work fine.

The reason I say use 'iswmcs' is some servers have a +M mode, I don't know about the one you use. Also, someone could set +im and it wouldn't detect it. If you really do only want to detect if +m is set on its own though, use if (+m === $1).

You do need to specify the + because otherwise it will also detect the -.

Hope this helps!

Regards,

Last edited by Mentality; 24/08/04 11:33 PM.

Mentality/Chris