mirror of
https://github.com/anope/anope.git
synced 2026-06-25 08:56:39 +02:00
Process defines even before includes, fixes defining{} pseudoclient names to something else in their respective configurations
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
/*
|
||||
* First, create the service.
|
||||
* Note that an easy way to rename this service is to define{} the client name to something else.
|
||||
*/
|
||||
service
|
||||
{
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
/*
|
||||
* First, create the service.
|
||||
* Note that an easy way to rename this service is to define{} the client name to something else.
|
||||
*/
|
||||
service
|
||||
{
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
/*
|
||||
* First, create the service.
|
||||
* Note that an easy way to rename this service is to define{} the client name to something else.
|
||||
*/
|
||||
service
|
||||
{
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
/*
|
||||
* First, create the service.
|
||||
* Note that an easy way to rename this service is to define{} the client name to something else.
|
||||
*/
|
||||
service
|
||||
{
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
/*
|
||||
* First, create the service.
|
||||
* Note that an easy way to rename this service is to define{} the client name to something else.
|
||||
*/
|
||||
service
|
||||
{
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
/*
|
||||
* First, create the service.
|
||||
* Note that an easy way to rename this service is to define{} the client name to something else.
|
||||
*/
|
||||
service
|
||||
{
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
/*
|
||||
* First, create the service.
|
||||
* Note that an easy way to rename this service is to define{} the client name to something else.
|
||||
*/
|
||||
service
|
||||
{
|
||||
|
||||
+5
-5
@@ -1284,11 +1284,6 @@ ConfigItems::ConfigItems(ServerConfig *conf)
|
||||
/* These tags can occur multiple times, and therefore they have special code to read them
|
||||
* which is different to the code for reading the singular tags listed above. */
|
||||
MultiItem MultiItems[] = {
|
||||
{"define",
|
||||
{"name", "value", ""},
|
||||
{"", "", ""},
|
||||
{DT_STRING, DT_STRING},
|
||||
InitDefine, DoDefine, DoneDefine},
|
||||
/* Include must be first so we can pull in the extra files before processing
|
||||
* anything else! */
|
||||
{"include",
|
||||
@@ -1296,6 +1291,11 @@ ConfigItems::ConfigItems(ServerConfig *conf)
|
||||
{"", "", ""},
|
||||
{DT_STRING, DT_STRING},
|
||||
InitInclude, DoInclude, DoneInclude},
|
||||
{"define",
|
||||
{"name", "value", ""},
|
||||
{"", "", ""},
|
||||
{DT_STRING, DT_STRING},
|
||||
InitDefine, DoDefine, DoneDefine},
|
||||
{"uplink",
|
||||
{"host", "ipv6", "port", "password", ""},
|
||||
{"", "no", "0", "", ""},
|
||||
|
||||
Reference in New Issue
Block a user