]> arthur.barton.de Git - ngircd-alex.git/commit
Channel Admins are not allowed to set Channel Owner status!
authorAlexander Barton <alex@barton.de>
Tue, 9 Jan 2024 15:36:10 +0000 (16:36 +0100)
committerAlexander Barton <alex@barton.de>
Thu, 11 Jan 2024 14:12:54 +0000 (15:12 +0100)
commita06f33d4e5854524f94aaab38d7a35e55c6c3422
tree96dd7b8dd29c6a164affc0296b996acb84847c50
parent541351858699bc7f196a197e417dce3b7f13b124
Channel Admins are not allowed to set Channel Owner status!

This was reported back in April 2021, thanks Sarah!

    Subject: NGIRCD bug report
    Date: April 28 2021, 14:30:08 MESZ
    To: alex@barton.de

    Hello,

    I am writing to you to report a bug in ngircd.
    In any give channel, if an user is with mode +a (admin), he/she can
    sets mode +/-q(owner) to any other user. This is not inline with the
    documentation.

    I've looked into the code irc-mode.c, apparently an if block is
    missing. Below are the code snippets that I believe fixes the bug.

This patch is what Sarah sent in. Thanks a lot!
src/ngircd/irc-mode.c