]> arthur.barton.de Git - ngircd.git/commit
Mode setting: only check channel user modes when on channel
authorAlexander Barton <alex@barton.de>
Mon, 31 Dec 2012 17:13:18 +0000 (18:13 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 31 Dec 2012 17:13:18 +0000 (18:13 +0100)
commit20ddffca0d5ae5393adc57b67ba90e15d33e2ee3
treed8b1a41aa52924f2cb6df126fc8528c9dd8e1c0c
parent25e56a5e837173a567a0873bd5a9ccc126cff333
Mode setting: only check channel user modes when on channel

Only check the channel user modes of the initiator if he is joined to
this channel and not an IRC operator enforcing modes (which requires
the configuration option "OperCanUseMode" to be enabled), because trying
to check channel user modes of a non-member results in this assertion:

 Assertion failed: (cl2chan != NULL), function Channel_UserModes,
  file channel.c, line 742.

This closes bug #147, thanks to James Kirwill <james.kirwill@bk.ru>
for tracking this down!
src/ngircd/irc-mode.c