Originally Posted By: Riamus2
I considered putting it on the event line like that, but then you don't get the else option to give an error message to the user.
Well it's not the end of the world with $regml(). Here is just my example:
Code:
on $*:text:/^!((de)?(op|voice))( |$)/iS:#:{
var %n = $strip($2), %c = $regml(1)
if (%n) {
if ($ulevel == 10) {
cs %c #
if (%c == op) notice %n Welcome
elseif (%c == deop) notice %n Sorry
else notice $nick $+($iif(%c == voice,Vo,Devo),iced)
}
else notice $nick you can't use the command $+(!,%c)
}
}

Last edited by Tomao; 27/08/11 05:01 PM.