mIRC Home    About    Download    Register    News    Help

Print Thread
#215775 05/10/09 01:49 PM
Joined: Oct 2009
Posts: 14
N
Pikka bird
OP Offline
Pikka bird
N
Joined: Oct 2009
Posts: 14
Hi all!

I've got my bot on a remote computer, and sometimes need to execute some command with it; so I tried doing a very easy addon with the following code:

Code:
On RemoteControl:TEXT:exec *:?: {
  // $+ $2-
  close -m $nick
}

On *:LOAD: {
  auser RemoteControl MyNick
}

On *:UNLOAD: {
  rlevel RemoteControl
}


But this doesn't work, concretely the // $+ $2- line. I suppose it's a new protection added to recent versions of mIRC because a similar code worked for me a time ago, but now it doesn't. The question is: Is there any way to override this 'protection'? I have not seen it in mIRC options nor alt + r options.

Thanks in advance smile

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
There is no such protection. You don't need any command prefixes (read: slashes) in remote scripts though, so $2- as command is enough.

Make sure you have no other on TEXT events that override this one. Also add same debugging code, like replacing '$2-' with 'msg $nick EXEC received' which should result in the bot messaging you back.

Joined: Oct 2009
Posts: 14
N
Pikka bird
OP Offline
Pikka bird
N
Joined: Oct 2009
Posts: 14
Thanx a lot, it worked now smile Of course i'll debug it, it's a little bit dangerous remote. It's strange, because a time ago I had it with 2 slashes and it worked, now it didn't, but executing directly $2- it works perfectly!

Thanx again!

Last edited by nkneumann; 05/10/09 02:12 PM.

Link Copied to Clipboard