mIRC Home    About    Download    Register    News    Help

Print Thread
user says target text within X-secs of joining #239120 23/09/12 07:39 PM
Joined: Sep 2012
Posts: 12
D
displayname Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Sep 2012
Posts: 12
This sounds like a simple script, but am I correct in saying that it's impossible to do with just the on-join event? Won't I also need the on-text? Could I get away with simply setting a var then unsetting it in 60secs, then matching that against the target text?
I have quite a few good working scripts that will easily work from 1st instance of text event to multiple times, and so on, but trying to do this "within the first 60 seconds of joining" only has got me stumbled.
More importantly, I want to do this against all joiners individually (except opers obviously) so I don't want one joiner to reset the previous joiner's timer, won't that complicate things or should I not worry about that part? Will using $address($nick,2) be sufficient here?

Last edited by displayname; 23/09/12 08:27 PM.
Re: user says target text within X-secs of joining [Re: displayname] #239122 23/09/12 09:58 PM
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Why don't you get to the point of what you're trying to do?

Re: user says target text within X-secs of joining [Re: Tomao] #239123 23/09/12 10:02 PM
Joined: Sep 2012
Posts: 12
D
displayname Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Sep 2012
Posts: 12
Sorry if that was too vague. I'm trying to K/B a user if they post certain text within 60 secs of joining a room.

Re: user says target text within X-secs of joining [Re: displayname] #239126 23/09/12 11:26 PM
Joined: Nov 2009
Posts: 295
P
pball Offline
Fjord artisan
Offline
Fjord artisan
P
Joined: Nov 2009
Posts: 295
What about this?

Code:
on *:join:#: set -u60 $+(%,60sec_,$nick) 1

on *:text:*:#: if ($1- == don't ban me) && ($($+(%,60sec_,$nick),2)) kick $chan $nick


Make a variable with the persons nick that is unset after 60 seconds. When something is said check if it's bad and that nicks variable still exists


http://scripting.pball.win
My personal site with some scripts I've released.
Re: user says target text within X-secs of joining [Re: pball] #239127 24/09/12 03:21 AM
Joined: Sep 2012
Posts: 12
D
displayname Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Sep 2012
Posts: 12
Yes, this is exactly what I was trying to say that I needed in the first paragraph at the start of the thread. I thought somehow you could combine the two events. This works perfectly thanks much. smile