mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline OP
Hoopy frood
OP Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Came across this by chance while doing something else.

on *:OPEN:*:*fxr*:{ echo -st ALL CATCH OPEN : $nick : $1- }

I have no pm windows open and someone PM's me /MSG DaveC test 1 2 3 I get no event (as expected)
I have no pm windows open and someone PM's me /MSG DaveC test fxr 1 2 3 I get the event (as expected)

I have no dcc chat windows open and someone dcc chats me with /DCC chat DaveC
Irc server replies with *FXR*:{ Unknown command in reply to my issueing that as a server command, this of course is the match text section of the ON OPEN, which has been seen as the command section and as its not a command was issued to the server in the hope it knew it.

Bug existed in 6.16, just never picked up maybe.

*fxr* was just an example, occurs with other match texts Including *

PS: I dont need a work around

Joined: Dec 2002
Posts: 122
S
Vogon poet
Offline
Vogon poet
S
Joined: Dec 2002
Posts: 122
You should use ON OPEN:?:*text*: instead.
When a DCC window opens, the "ON OPEN:=:" syntax applies and everything behind the last : is treated as a command.

Last edited by STING; 22/02/06 07:40 PM.
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
This is just speculation..

Could this have something to do with the :'s in the command? Maybe the code that parses the on OPEN event is running away because there are : within the command on the same line as the on OPEN line (which is delimited by :'s ). Have you tried doing that code with the commands below the event, or maybe with different characters besides the :'s ?

-genius_at_work

Joined: Apr 2004
Posts: 871
Sat Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2004
Posts: 871
Quote:
You should use ON OPEN:?:*text*: instead.
When a DCC window opens, the "ON OPEN:=:" syntax applies and everything behind the last : is treated as a command.

Exactly. This is not a bug, this is inconsistency by design. If anything, the '*' should be removed from the "Format" line in the helpfile page about "on OPEN".


Saturn, QuakeNet staff
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline OP
Hoopy frood
OP Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Its not a case of what i need to use, its a case of the syntax for the command as speced in the helpfile, doesnt work, this means the code is bugged or the documentation is bugged.


Link Copied to Clipboard