mIRC Home    About    Download    Register    News    Help

Print Thread
$os not returning proper version #45573 31/08/03 02:52 AM
Joined: Mar 2003
Posts: 4
D
DigitalDude Offline OP
Self-satisified door
OP Offline
Self-satisified door
D
Joined: Mar 2003
Posts: 4
In updates.txt there is:

18.$os now returns NET for .NET systems.

This behavior is not correct since Windows .NET does not exist. Windows .NET was renamed to Windows 2003 before it was released. So $os should return 2003 instead of .NET

Re: $os not returning proper version #45574 31/08/03 02:53 AM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i know its a bug, but its really easy to reproduce:
Code:
alias o.s {
return $replace($os,.NET,2003)
}

Last edited by pheonix; 31/08/03 03:59 AM.

new username: tidy_trax
Re: $os not returning proper version #45575 31/08/03 03:10 AM
Joined: Mar 2003
Posts: 4
D
DigitalDude Offline OP
Self-satisified door
OP Offline
Self-satisified door
D
Joined: Mar 2003
Posts: 4
Unfortunately, mIRC doesn't allow you to override internal identifiers. crazy

Re: $os not returning proper version #45576 31/08/03 03:35 AM
Joined: Aug 2003
Posts: 148
K
KoRn18 Offline
Vogon poet
Offline
Vogon poet
K
Joined: Aug 2003
Posts: 148
correct me if im wong (im not testing... 1 i dont have server 2K3, 2 theres no ctrl break anymore!!!! >:| [or so iv heard])

but isnt this an infinity loop?
alias os { return $replace($os,.NET,2003) }

Last edited by KoRn18; 31/08/03 03:36 AM.

_________
may death strike you.
Re: $os not returning proper version #45577 31/08/03 03:42 AM
Joined: Dec 2002
Posts: 46
Z
zac Offline
Ameglian cow
Offline
Ameglian cow
Z
Joined: Dec 2002
Posts: 46
No ctrl+break any more huh?

* Break: command halted (line 2, script.mrc)

So much for ctrl+break!

Re: $os not returning proper version #45578 31/08/03 03:59 AM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
forgot about that blush,edited grin $o.s


new username: tidy_trax
Re: $os not returning proper version #45579 31/08/03 08:34 AM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
There sure is Ctrl+Break and it works but only until before (Not responding) is printed in the titlebar. After you see (Not responding), Ctrl+Break doesn't work. Note that I've only seen this on WinXP, I have no idea what happens on other Windows versions.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Re: $os not returning proper version #45580 31/08/03 08:40 AM
Joined: Dec 2002
Posts: 2,985
Watchdog Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
//echo $replace($os,XP,NT5.1)

It replaces it for me.

Re: $os not returning proper version #45581 31/08/03 09:57 AM
Joined: Dec 2002
Posts: 196
T
trenzterra Offline
Vogon poet
Offline
Vogon poet
T
Joined: Dec 2002
Posts: 196
There is no Windows 2003 either. It's Windows Server 2003 :tongue:


trenzterra
AustNet #trenzterra and #w
Head Scripter @ http://trenzterra.uni.cc
Re: $os not returning proper version #45582 31/08/03 01:28 PM
Joined: Aug 2003
Posts: 148
K
KoRn18 Offline
Vogon poet
Offline
Vogon poet
K
Joined: Aug 2003
Posts: 148
iv seen posts with somthing about break dont work anymore like it should idk...i didnt try it myself, i never got caught in a loop yet


_________
may death strike you.