Dump configuration does not quote integer and boolean settings.
Signed-off-by: Jan Vidar Krey <janvidar@extatic.org>
This commit is contained in:
parent
eeaceee6f8
commit
b8a0b45245
@ -3,8 +3,11 @@
|
|||||||
- Better "!stats"; can display peak and current bandwidth usage.
|
- Better "!stats"; can display peak and current bandwidth usage.
|
||||||
- Added "+myip" command.
|
- Added "+myip" command.
|
||||||
- Ensure super users and hub owners also have the operator flag set.
|
- Ensure super users and hub owners also have the operator flag set.
|
||||||
- Bug #1: Better dynamic send queue handling for large hubs at the cost of more memory use.
|
- Bug #1: Disconnecting users due to excessive "send queue".
|
||||||
- Bug #5: Always provide IP-address to all users, not just for active clients.
|
- Bug #5: Always provide IP-address to all users, not just for active clients.
|
||||||
|
- Better send queue priorities.
|
||||||
|
- Dump configuration does not quote integer and boolean settings.
|
||||||
|
- Minor optimizations.
|
||||||
|
|
||||||
|
|
||||||
0.2.5-3487:
|
0.2.5-3487:
|
||||||
|
@ -366,20 +366,20 @@ void free_config(struct hub_config* config)
|
|||||||
if (ignore_defaults) \
|
if (ignore_defaults) \
|
||||||
{ \
|
{ \
|
||||||
if (config->NAME != DEFAULT) \
|
if (config->NAME != DEFAULT) \
|
||||||
fprintf(stdout, "%s = \"%d\"\n", #NAME , config->NAME); \
|
fprintf(stdout, "%s = %d\n", #NAME , config->NAME); \
|
||||||
} \
|
} \
|
||||||
else \
|
else \
|
||||||
fprintf(stdout, "%s = \"%d\"\n", #NAME , config->NAME); \
|
fprintf(stdout, "%s = %d\n", #NAME , config->NAME); \
|
||||||
|
|
||||||
|
|
||||||
#define DUMP_BOOL(NAME, DEFAULT) \
|
#define DUMP_BOOL(NAME, DEFAULT) \
|
||||||
if (ignore_defaults) \
|
if (ignore_defaults) \
|
||||||
{ \
|
{ \
|
||||||
if (config->NAME != DEFAULT) \
|
if (config->NAME != DEFAULT) \
|
||||||
fprintf(stdout, "%s = \"%s\"\n", #NAME , (config->NAME ? "yes" : "no")); \
|
fprintf(stdout, "%s = %s\n", #NAME , (config->NAME ? "yes" : "no")); \
|
||||||
} \
|
} \
|
||||||
else \
|
else \
|
||||||
fprintf(stdout, "%s = \"%s\"\n", #NAME , (config->NAME ? "yes" : "no"));
|
fprintf(stdout, "%s = %s\n", #NAME , (config->NAME ? "yes" : "no"));
|
||||||
|
|
||||||
void dump_config(struct hub_config* config, int ignore_defaults)
|
void dump_config(struct hub_config* config, int ignore_defaults)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user