|
Joined: Nov 2004
Posts: 842
Hoopy frood
|
OP
Hoopy frood
Joined: Nov 2004
Posts: 842 |
Maybe this classifies as a bug, I'm not sure: ...
name, title, text are required. delay, iconfn, iconpos, alias, and wid can be $null.
...
//noop $tip($ctime,Title,Text) * Invalid parameters: $tip
What do you do at the end of the world? Are you busy? Will you save us?
|
|
|
|
Joined: Sep 2005
Posts: 2,881
Hoopy frood
|
Hoopy frood
Joined: Sep 2005
Posts: 2,881 |
Not a bug. That's withholding the parameter altogether. Try this: //noop $tip($ctime,Title,Text,,,,,)
|
|
|
|
Joined: Aug 2007
Posts: 12
Pikka bird
|
Pikka bird
Joined: Aug 2007
Posts: 12 |
I don't understand this behaviour. It doesn't match the behaviour of any other mIRC aliases. For example: $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.
|
|
|
|
Joined: Sep 2005
Posts: 2,881
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
Joined: Nov 2004
Posts: 842
Hoopy frood
|
OP
Hoopy frood
Joined: Nov 2004
Posts: 842 |
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?
|
|
|
|
Joined: Aug 2007
Posts: 12
Pikka bird
|
Pikka bird
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).
|
|
|
|
Joined: Oct 2003
Posts: 3,918
Hoopy frood
|
Hoopy frood
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"
|
|
|
|
Joined: Dec 2002
Posts: 155
Vogon poet
|
Vogon poet
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.
|
|
|
|
Joined: Dec 2002
Posts: 5,524
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 5,524 |
I'll be changing this in the next version so that the $null parameters can also be optional.
|
|
|
|
|