mIRC Homepage
Posted By: jONEz Enable/Disable remote events... - 08/02/04 01:24 AM
I'm having some trouble trying to enable and disable remote events on the fly, the code I'm using is straight out of a tutorial but doesn't seem to work, here's a basic form of what I have:

on 1:TEXT:!boton:#:{
if ($nick isop #) { enable mybot }
}

on 1:TEXT:!botoff:#:{
if ($nick isop #) { disable mybot }
}

#mybot on
on 1:TEXT:!thebot:#:{
msg $nick w3rd
}
#mybot end

#mybot on makes the event enabled by default, and switching this to #mybot off indeed disables the event. However the two commands enable mybot and disable mybot produce the message "/enable: no such group(s)" and "/disable: no such group(s)" respectively in my status window. The guide says to omit the #, obviously I'm doing something wrong can someone see what I've missed?

Thanks!!
Posted By: Iori Re: Enable/Disable remote events... - 08/02/04 01:27 AM
enable #mybot
disable #mybot
Posted By: jONEz Re: Enable/Disable remote events... - 08/02/04 01:46 AM
Thanks! I can't believe I didn't try that, the guide specifically said to omit it thats why I didn't... anyway I'm just glad it works! Thanks for the quick reply too!
© mIRC Discussion Forums