mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2004
Posts: 15
J
jONEz Offline OP
Pikka bird
OP Offline
Pikka bird
J
Joined: Jan 2004
Posts: 15
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!!

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
enable #mybot
disable #mybot

Joined: Jan 2004
Posts: 15
J
jONEz Offline OP
Pikka bird
OP Offline
Pikka bird
J
Joined: Jan 2004
Posts: 15
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!


Link Copied to Clipboard