mIRC Home    About    Download    Register    News    Help

Print Thread
One reply only? How? #267392 23/06/20 11:51 AM
Joined: Jun 2020
Posts: 2
I
Incandescente Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
I
Joined: Jun 2020
Posts: 2
My very simple script is as follows:

on *:text:*:?: /msg $nick where are you from?

Now, I need this script to run on one and only one ontext event, per each query. In other words, I want this script to reply only once.

Does anybody know how do I do this?

Thanks




Re: One reply only? How? [Re: Incandescente] #267394 23/06/20 06:03 PM
Joined: Jan 2004
Posts: 1,329
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,329
if you want it to happen as someone opens the query window, then you can use the ON OPEN event which also includes the text of their first message. if you want it to trigger even if they type into a query window that you opened yourself, then it would be more complicated to track whether someone has previously said something into an arbitrary query window.

Re: One reply only? How? [Re: maroon] #267395 23/06/20 10:58 PM
Joined: Jun 2020
Posts: 2
I
Incandescente Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
I
Joined: Jun 2020
Posts: 2
thanks! works great