mIRC Home    About    Download    Register    News    Help

Print Thread
#58934 03/11/03 03:42 AM
Joined: Sep 2003
Posts: 149
S
Stealth Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Sep 2003
Posts: 149
I would like to see a $compressed which returns $true or $false dependint on if the file was compressed with $compress.

Like if i use $compress(file.txt), $compressed(file.txt) would return $true.

For now, is there a way to script this?


mIRC 6.21 - Win XP Pro (SP2) - 2.4 Ghz - 1 GB Mem
irc.x-tab.org
#58935 03/11/03 04:28 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
It looks like compressed files can be identified by two opening chars, 120 and 156. A scripted alias would be looking like:
  • alias compressed bread $+(",$1,") 0 2 &x | if $bvar(&x,1-) == 120 156 { return $true }


Link Copied to Clipboard