From 6d619bf41168819efcf6f74335186c7c09f62f4e Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Wed, 8 Nov 2017 23:37:38 -0500 Subject: [PATCH] fix channel mode change privilege enforcement --- irc/modes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/modes.go b/irc/modes.go index 0ea5e544..8d7f6038 100644 --- a/irc/modes.go +++ b/irc/modes.go @@ -488,7 +488,7 @@ func (channel *Channel) ApplyChannelModeChanges(client *Client, isSamode bool, c for _, change := range changes { // chan priv modes are checked specially so ignore them // means regular users can't view ban/except lists... but I'm not worried about that - if isSamode && ChannelModePrefixes[change.mode] == "" && !clientIsOp { + if !isSamode && ChannelModePrefixes[change.mode] == "" && !clientIsOp { if !alreadySentPrivError { alreadySentPrivError = true client.Send(nil, client.server.name, ERR_CHANOPRIVSNEEDED, channel.name, "You're not a channel operator")