diff options
author | June McEnroe <june@causal.agency> | 2021-08-28 16:05:34 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-08-28 16:05:34 -0400 |
commit | 3294ada0562f8b598104ed1df0a382fb2d1f195b (patch) | |
tree | d0ee8109b0264af2b846a15f5592c2812aaf6812 | |
parent | Don't create new tls_server(3), just reconfigure (diff) | |
download | pounce-3294ada0562f8b598104ed1df0a382fb2d1f195b.tar.gz pounce-3294ada0562f8b598104ed1df0a382fb2d1f195b.zip |
Use CapBits as length of Filters
This should hopefully prevent accidentally using CapSomething rather than CapSomethingBit as an index in the future.
-rw-r--r-- | client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client.c b/client.c index ed2e0d3..29546f1 100644 --- a/client.c +++ b/client.c @@ -558,7 +558,7 @@ static const char *filterUserhostInNames(const char *line) { ); } -static Filter *Filters[] = { +static Filter *Filters[CapBits] = { [CapAccountNotifyBit] = filterAccountNotify, [CapAwayNotifyBit] = filterAwayNotify, [CapBatchBit] = filterBatch, |