mIRC Homepage

$os not returning proper version

Posted By: DigitalDude

$os not returning proper version - 31/08/03 02:52 AM

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
Posted By: pheonix

Re: $os not returning proper version - 31/08/03 02:53 AM

i know its a bug, but its really easy to reproduce:
Code:
alias o.s {
return $replace($os,.NET,2003)
}
Posted By: DigitalDude

Re: $os not returning proper version - 31/08/03 03:10 AM

Unfortunately, mIRC doesn't allow you to override internal identifiers. crazy
Posted By: KoRn18

Re: $os not returning proper version - 31/08/03 03:35 AM

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) }
Posted By: zac

Re: $os not returning proper version - 31/08/03 03:42 AM

No ctrl+break any more huh?

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

So much for ctrl+break!
Posted By: pheonix

Re: $os not returning proper version - 31/08/03 03:59 AM

forgot about that blush,edited grin $o.s
Posted By: qwerty

Re: $os not returning proper version - 31/08/03 08:34 AM

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.
Posted By: Watchdog

Re: $os not returning proper version - 31/08/03 08:40 AM

//echo $replace($os,XP,NT5.1)

It replaces it for me.
Posted By: trenzterra

Re: $os not returning proper version - 31/08/03 09:57 AM

There is no Windows 2003 either. It's Windows Server 2003 :tongue:
Posted By: KoRn18

Re: $os not returning proper version - 31/08/03 01:28 PM

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
© 2022 mIRC Discussion Forums