mIRC Home    About    Download    Register    News    Help

Print Thread
#106480 30/12/04 08:04 PM
H
hyron
hyron
H
when use $chan(something that isn't a number) and if that "something" isn't a channel it return the total of channels... it should return nothing! :tongue: sorry for my english.

#106481 30/12/04 08:12 PM
Joined: Dec 2002
Posts: 230
G
Fjord artisan
Offline
Fjord artisan
G
Joined: Dec 2002
Posts: 230
I second that

#106482 31/12/04 12:33 AM
Joined: Dec 2002
Posts: 1,536
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,536
I agree, using $chan(a) should return if anything an "invalid parameter" or "not enough parameters" error rather than evaluate


Those who fail history are doomed to repeat it
#106483 31/12/04 01:38 AM
Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321

#106484 01/01/05 06:03 PM
Joined: Jan 2003
Posts: 2,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
It happens with almost any counting identifier, like $line(), $window(), $get/findtok() etc. It's one of those things that are handy in some cases but inconvenient in others.

#106485 02/01/05 03:48 PM
H
hyron
hyron
H
I have tried it with $line() and $window() but don't happens oO

#106486 02/01/05 04:46 PM
Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
//echo -a $window(*,0) - 1
//echo -a $window(*,a) - 1

Seems qwerty's right.


Link Copied to Clipboard