Project

General

Profile

$version » History » Version 2

Paul Janson, 03/08/2021 10:47 AM

1 1 Per Amundsen
_Added in 1.8.10_
2
3
*$version*
4
5
Returns the AdiIRC version number.
6 2 Paul Janson
7
Note that this requires some scripts to be modified in order to allow them to work in both clients, as you would need to check a different number in each client. For example, if a script requires a minimum of mIRC v7.55, it might contain a line like:
8
9
<pre>
10
if ($version < 7.55) goto syntax
11
</pre>
12
13
However, that would also reject running the script in AdiIRC until the far distant future. To allow the script to run in both clients, you could use $~adiircexe to test if it's running inside AdiIRC, where you can test for the minimum $version or $builddate needed to run the script:
14
15
<pre>
16
//if ((!$~adiircexe && $version < 7.55) || ($version < 4)) goto syntax
17
</pre>