diff options
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c index 9c89141f1..5e1f69591 100644 --- a/src/config.c +++ b/src/config.c @@ -329,6 +329,10 @@ int Numeric; int UnRestrictSAdmin; +char *UlineServers; +char **Ulines; +int NumUlines; + /*************************************************************************/ /* Deprecated directive (dep_) and value checking (chk_) functions: */ @@ -665,6 +669,7 @@ Directive directives[] = { {"GlobalOnDefconMore", {{PARAM_SET, PARAM_RELOAD, &GlobalOnDefconMore}}}, {"DefconMessage", {{PARAM_STRING, PARAM_RELOAD, &DefconMessage}}}, + {"UlineServers", {{PARAM_STRING, PARAM_RELOAD, &UlineServers}}}, }; /*************************************************************************/ @@ -1197,6 +1202,19 @@ int read_config(int reload) } while ((s = strtok(NULL, " "))); } + /* Ulines */ + + if (UlineServers) { + NumUlines = 0; + + s = strtok(UlineServers, " "); + do { + NumUlines++; + Ulines = realloc(Ulines, sizeof(char *) * NumUlines); + Ulines[NumUlines - 1] = sstrdup(s); + } while ((s = strtok(NULL, " "))); + } + /* Host Setters building... :P */ HostNumber = 0; /* always zero it, even if we have no setters */ if (HostSetter) { |