hirc

IRC client
Log | Files | Refs

commit 409c1fd6dc61ae69e80611765f49bdb669591f59
parent c829857b60bdc92629e6b5f9601d88ff241f4c69
Author: hhvn <dev@hhvn.uk>
Date:   Wed, 17 Nov 2021 00:48:12 +0000

config.c: forgot colours in config_getr and config_getl

Diffstat:
Mconfig.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/config.c b/config.c @@ -142,6 +142,7 @@ config_getl(char *name) { for (i=0; config[i].name; i++) { if (strcmp(config[i].name, name) == 0 && ( config[i].valtype == Val_bool || + config[i].valtype == Val_colour || config[i].valtype == Val_signed || config[i].valtype == Val_unsigned || config[i].valtype == Val_nzunsigned)) @@ -191,8 +192,9 @@ config_getr(char *name, long *a, long *b) { int i; for (i=0; config[i].name; i++) { - if (strcmp(config[i].name, name) == 0 && - config[i].valtype == Val_pair) { + if (strcmp(config[i].name, name) == 0 && ( + config[i].valtype == Val_pair || + config[i].valtype == Val_colourpair)) { if (a) *a = config[i].pair[0]; if (b) *b = config[i].pair[1]; return;