mIRC Home    About    Download    Register    News    Help

Print Thread
#241645 09/05/13 06:26 PM
Joined: May 2013
Posts: 2
M
Bowl of petunias
OP Offline
Bowl of petunias
M
Joined: May 2013
Posts: 2
I've been tinkering around with the remote.

This event is supposed to send a file to a user once he/she enters 'test' into the textbox.

on 1:Text:*test*:#:/send [user name] [path]

But so far I've been specifying exactly who to send to, and exactly what file to send. Is there any way I can make this more flexible? i.e.

* using an identifier that refers to the specific user who triggered the event?

Last edited by maraud3r; 09/05/13 06:27 PM.
maraud3r #241647 09/05/13 06:57 PM
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
You can use $nick to get the nickname value, $chan to get the channel etc, check the help file to see all identifiers (/help $).

on *:Text:*test*:#:{
if ($nick == maraud3r) send $nick file1
elseif ($nick == anothernickname) send $nick file2
}

Note that the matchtext *test* will trigger the event if "test" appears anywhere in the input text


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #241648 10/05/13 12:28 AM
Joined: May 2013
Posts: 2
M
Bowl of petunias
OP Offline
Bowl of petunias
M
Joined: May 2013
Posts: 2
Thank you, that did it!!


Link Copied to Clipboard