mIRC Home    About    Download    Register    News    Help

Print Thread
#115816 30/03/05 04:30 PM
Joined: May 2004
Posts: 27
N
Nixor Offline OP
Ameglian cow
OP Offline
Ameglian cow
N
Joined: May 2004
Posts: 27
an identifier like this... i think is a good idea.


---

Nixor's - http://xoniq.tk
#115817 30/03/05 05:31 PM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
Should that do something too? And if so, would you mind explaining it?

#115818 30/03/05 10:14 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
The problem with your suggestion is, (1) There is an identifier called that already, (2) we dont know what you expected it to return, (3) alias* is a valid alias name so may or maynot ment to be a wildcard.

#115819 30/03/05 11:04 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Well it's blatantly obvious that he's suggesting that $isalias() accept a wildcard and a second, 'N', parameter to return info for the Nth matching alias name.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#115820 31/03/05 01:03 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
(1) alias name is in use, WOULDNT seem a problem until you have a closer look at what alias names can be (see 3)

(2) I never said i didnt understand what he wanted it to do, i said "we dont know what you expected it to return"
//echo -a $isalias(GLOB*,0)
4
//echo -a $isalias(GLOB*,1)
$true or Global.rebuild.lists

(3) alias* is a valid alias name and not nessaserily a wildcard for that matter GLOB*,0 is a valid alias name
alias GLOB*,0 { echo Mahahahaha }
/GLOB*,0
Mahahahaha

* Ok ok you gotta be pretty wack to be using that as an alias name but well it is there!

#115821 31/03/05 06:23 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
The fact that wildcard characters and commas can be in alias names is not a problem. mIRC scripting's evaluation of identifiers requires that an alias name containing a comma couldn't be put in directly anyway. This means that the presence of a literal comma shows that the scripter is passing more than one parameter, at which point mIRC knows to treat wildcard characters appropriately instead of as plain-text. No problem here at all.

As for what it would return, well it seems pretty clear to use the basic logic behind every other N-parameter-driven identifier: $isalias(blah*,0) returns the number of matches; $isalias(blah*,N) returns info about the Nth matching alias.


Spelling mistakes, grammatical errors, and stupid comments are intentional.

Link Copied to Clipboard