mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2003
Posts: 105
L
Vogon poet
OP Offline
Vogon poet
L
Joined: Feb 2003
Posts: 105
on 1:TEXT:*:#: {
do stuff
}

on 1:TEXT:*:#: {
do different stuff
}

In the above example, why doesn't the 2nd on TEXT event trigger ?

regards, Mark

S
Syperus
Syperus
S
what commands do you have for them? are those the alias or did u just use that has a sample? If your not working with groups you can use on *:TEXT:*:#: so that will trigger on any text in a channel. Im not for sure what all u have going on with your commands but if your grouping and if that 2nd one was for a differnt group then u need to use group#:text:*:#

Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
This Thread explains why this is so...

Joined: Mar 2003
Posts: 1,256
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,256
There really isn't a need to have the exact same event twice in your script. Combine all commands under one eventline.

Joined: Feb 2003
Posts: 105
L
Vogon poet
OP Offline
Vogon poet
L
Joined: Feb 2003
Posts: 105
I guess your response tells me that there is a reason that mirc does not like two on text events !!



i understand that i can combine the two events into a single event and use if-then statements to execute the appropriate command, but why can;t i use separate on text events?
smile

I
Iori
Iori
I
You can, but they must be in different files. mIRC always executes the first matching event in each file, then moves on to the next file.

H
HellSpawn
HellSpawn
H
does your first event have a "halt" in it ? if so that's probably the problem. once it hits that halt it won't look for any more events. it just stops dead at that point.

Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
That's not right.

mIRC triggers one ^ event and one non ^ event per file. Halting only makes a difference to the triggering event and those with the & prefix.

Joined: Feb 2003
Posts: 105
L
Vogon poet
OP Offline
Vogon poet
L
Joined: Feb 2003
Posts: 105
Thanks for the responses ..
smile i think i now understand


Link Copied to Clipboard