mIRC Home    About    Download    Register    News    Help

Print Thread
$tip() bug. #183083 17/08/07 05:03 PM
Joined: Nov 2004
Posts: 826
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 826
Maybe this classifies as a bug, I'm not sure:

Originally Posted By: "Jigsy, from the help file. (Go figure.)"

...

name, title, text are required.
delay, iconfn, iconpos, alias, and wid can be $null.

...


//noop $tip($ctime,Title,Text)

Quote:

* Invalid parameters: $tip


What do you do at the end of the world? Are you busy? Will you save us?
Re: $tip() bug. [Re: Jigsy] #183086 17/08/07 05:06 PM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Not a bug. That's withholding the parameter altogether.

Try this:

Code:
//noop $tip($ctime,Title,Text,,,,,)

Re: $tip() bug. [Re: hixxy] #183110 17/08/07 08:35 PM
Joined: Aug 2007
Posts: 12
S
segosu Offline
Pikka bird
Offline
Pikka bird
S
Joined: Aug 2007
Posts: 12
I don't understand this behaviour. It doesn't match the behaviour of any other mIRC aliases. For example:

Code:
$readini(mirc.ini,n,text,defport) == 6667

$readini(mirc.ini,text,defport) == 6667

$readini(mirc.ini,,text,defport) == $null

Last edited by segosu; 17/08/07 09:58 PM.
Re: $tip() bug. [Re: segosu] #183117 17/08/07 10:38 PM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
It is different, but the help file says the other parameters can be $null, it doesn't say they're optional parameters.

It's possibly because $tip() takes so many parameters and it would be a pain to check for various combinations of optional parameters.

Re: $tip() bug. [Re: hixxy] #183118 17/08/07 10:40 PM
Joined: Nov 2004
Posts: 826
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 826
I wonder why $tip(<name>,<title>,<text>) doesn't treat it like $tip(<name>,<title>,<text>,,,,,,).


What do you do at the end of the world? Are you busy? Will you save us?
Re: $tip() bug. [Re: Jigsy] #183121 17/08/07 10:50 PM
Joined: Aug 2007
Posts: 12
S
segosu Offline
Pikka bird
Offline
Pikka bird
S
Joined: Aug 2007
Posts: 12
Indeed. I think it would make sense that $tip(1,2,3,4) would treat the rest of the missing parameters as $nulls, so *only* if you had a specific requirement for say the owning window, would you need to do $tip(1,2,3,4,,,,,wid).

Re: $tip() bug. [Re: segosu] #183145 18/08/07 01:20 AM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
it'd make a great Feature Suggestion, but as noted above, it's not a bug.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: $tip() bug. [Re: Jigsy] #183166 18/08/07 06:16 AM
Joined: Dec 2002
Posts: 155
S
Strider Offline
Vogon poet
Offline
Vogon poet
S
Joined: Dec 2002
Posts: 155
Haha, I fought with that identifier for like 10 minutes until I realized that the help file doesn't mention that they're optional parameters, just that they can be $null. Even though this is not a bug, I agree that $tip(name,title,text) should work.

Re: $tip() bug. [Re: Jigsy] #183762 22/08/07 12:11 PM
Joined: Dec 2002
Posts: 4,999
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,999
I'll be changing this in the next version so that the $null parameters can also be optional.