1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-01 23:46:37 +02:00
Files
unrealircd/include
Bram Matthys fad8c35847 Initial support for dynamic configuration, $define, $if, $endif.
Early commit, still cleaning up to do.
But what works is:

$define SERVER      "hub.example.org"

$if SERVER == "hub.example.org"
link .... {
....
}
$endif

$if defined(SERVER)
....
$endif

And also we have mod-loaded() which even works half-way in a block
such as in helpop:
help Chmodes {
[..]
$if module-loaded("chanmodes/stripcolor")
        " c = Block messages containing mIRC color codes [o]";
$endif
$if module-loaded("chanmodes/noctcp")
        " C = No CTCPs allowed in the channel [h]";
$endif
};

As said, still need to cleanups and there are some limitations.
Also the idea is to be able to use defined values in variable names/values
but that has not yet been implemented.
2019-05-17 20:43:36 +02:00
..
2019-05-12 13:29:40 +02:00
2002-03-05 23:09:39 +00:00
2015-10-16 15:32:10 -07:00
2015-07-28 21:44:32 +02:00
2002-02-16 20:15:41 +00:00
2016-05-12 16:57:32 +08:00
2000-02-28 22:45:44 +00:00
2000-07-14 20:22:59 +00:00
2004-05-13 16:39:23 +00:00
2018-12-19 13:58:44 +01:00
2019-05-12 13:29:40 +02:00
2004-02-22 02:52:12 +00:00