Skip to content

Commit 44538c3

Browse files
authoredNov 9, 2017
Merge pull request #162 from slingamn/modeperms
fix channel mode change privilege enforcement
2 parents d5832bf + 6d619bf commit 44538c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎irc/modes.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ func (channel *Channel) ApplyChannelModeChanges(client *Client, isSamode bool, c
488488
for _, change := range changes {
489489
// chan priv modes are checked specially so ignore them
490490
// means regular users can't view ban/except lists... but I'm not worried about that
491-
if isSamode && ChannelModePrefixes[change.mode] == "" && !clientIsOp {
491+
if !isSamode && ChannelModePrefixes[change.mode] == "" && !clientIsOp {
492492
if !alreadySentPrivError {
493493
alreadySentPrivError = true
494494
client.Send(nil, client.server.name, ERR_CHANOPRIVSNEEDED, channel.name, "You're not a channel operator")

0 commit comments

Comments
 (0)
Please sign in to comment.