mIRC Home    About    Download    Register    News    Help

Topic Options
#231851 - 07/05/11 05:21 PM Network in a prefix or the event.
DJ_Sol Offline
Hoopy frood

Registered: 04/01/07
Posts: 1156
Loc: Seattle
I'm sure this has been brought up in the past but I haven't seen it.

It would be nice to be able to have a network halt in a prefix.

Code:
Instead of:
on !@*:join:#:{
if ($network != NETWORK) return
}


Code:
Something like:
on network.name:!@*:join:#:{ }


Means the event will only trigger if network.name matches $network or $server if that seems better/safer.

Thank you.

Top
#231861 - 08/05/11 05:41 AM Re: Network in a prefix or the event. [Re: DJ_Sol]
FroggieDaFrog Offline
Hoopy frood

Registered: 16/04/10
Posts: 910
Loc: USA
To do this would require an update to the parser itself, considering the event markup itself....
_________________________
I am SReject
My Stuff

Top
#232006 - 12/05/11 06:43 PM Re: Network in a prefix or the event. [Re: DJ_Sol]
landonsandor Offline
Hoopy frood

Registered: 12/12/02
Posts: 1527
Loc: state of confusion
I think it's safer to have it as an IF comparison myself. I think changing the way the scripting engine goes could lead to a floodgate of requests to change it around. That's just my $.02 USD
_________________________
Those who fail history are doomed to repeat it

Top
#232014 - 13/05/11 10:39 PM Re: Network in a prefix or the event. [Re: DJ_Sol]
FroggieDaFrog Offline
Hoopy frood

Registered: 16/04/10
Posts: 910
Loc: USA
Not to mention, How would you account for user levels with it as such?

something like this?
Code:
on userlevel:network:TEXT:matchtext:target: { }
??

Now image exactly how MANY scripts that would break. ALL OF THEM that depend on an on text event.....
_________________________
I am SReject
My Stuff

Top
#232015 - 13/05/11 11:35 PM Re: Network in a prefix or the event. [Re: FroggieDaFrog]
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3462
Loc: France
His example shows where the user level is.
Actually, the undocumented me prefix use the syntax he wants:
Quote:
on me:*:text:matchtext:location:
so it's not a parser problem, that me could be a network value, the problem is that the network value is not reliable, it could easily return 'me' or even $null
I agree with landonsandor anyway, it would be too ugly
_________________________
Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net

Top
#232042 - 15/05/11 08:06 PM Re: Network in a prefix or the event. [Re: Wims]
landonsandor Offline
Hoopy frood

Registered: 12/12/02
Posts: 1527
Loc: state of confusion
you know I completely forgot about the ME level as I rarely use mirc anymore, tho I used to be one of the biggest supporters of that level
_________________________
Those who fail history are doomed to repeat it

Top
#232072 - 17/05/11 04:30 PM Re: Network in a prefix or the event. [Re: Wims]
DJ_Sol Offline
Hoopy frood

Registered: 04/01/07
Posts: 1156
Loc: Seattle
Originally Posted By: Wims
His example shows where the user level is.
Actually, the undocumented me prefix use the syntax he wants:
Quote:
on me:*:text:matchtext:location:
so it's not a parser problem, that me could be a network value, the problem is that the network value is not reliable, it could easily return 'me' or even $null
I agree with landonsandor anyway, it would be too ugly


Well thats why I said $network or $server, whichever is better. I figured Khaled's team could determine that. It's up to the scripter to make sure the value matches what they want it to. All mIRC would do is return the $network or $server value.

Top