hirc

IRC client
Log | Files | Refs

commit d2a427e7b73d10bb6b6e46c005b4180498570427
parent e12e2ca1cf331ae974595b0cf09c71d4abcfb2a9
Author: hhvn <dev@hhvn.uk>
Date:   Sat, 23 Apr 2022 23:00:06 +0100

Add -E and -i flags when dumping /ignores

Diffstat:
Msrc/commands.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/commands.c b/src/commands.c @@ -1424,7 +1424,7 @@ command_dump) { } if (!selected) - selected = opt_default; + selected = opt_default - 1; if (!str || !*str) { command_toofew("dump"); @@ -1513,6 +1513,10 @@ command_dump) { if (ip->format) fprintf(file, "-format %s ", ip->format); + if (ip->regopt & REG_EXTENDED) + fprintf(file, "-E "); + if (ip->regopt & REG_ICASE) + fprintf(file, "-i "); fprintf(file, "%s\n", ip->text); }