]> jfr.im git - irc/atheme/atheme.git/commit
modules/chanserv/close: check correct flags variable for log target
authorAaron Jones <redacted>
Fri, 15 Jul 2022 01:09:02 +0000 (01:09 +0000)
committerAaron Jones <redacted>
Fri, 15 Jul 2022 01:18:36 +0000 (01:18 +0000)
commit51e84e63e5b696ef39d54f9791a01e215962cb20
tree8004f7425c61436d40add485449fe36fb4bb52e1
parentd529c2b72a614be2dd1ba30a42e0cdeddd2bfeaf
modules/chanserv/close: check correct flags variable for log target

A user reported that the ChanServ CLOSE command was not working for
their channel, saying that the channel could not be closed.

MC_HOLD and CHAN_LOG both have the same value (1), but the former is
for flags in `struct mychan`, and the latter is for `struct channel`.

This lead me to believe that the channel was defined as a log target,
when in reality it was checking the wrong flags field and deducing
that the channel was a log target because it was held.

Check the correct flags field.

Reported-by: @hello-smile6
modules/chanserv/close.c