From 99b9312847f56a6725729e0ee59e3f328b555fe4 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Fri, 18 Jun 2021 18:26:45 -0400 Subject: [PATCH] fix #1696 --- irc/channel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/channel.go b/irc/channel.go index 785d5914..dc5fdd7a 100644 --- a/irc/channel.go +++ b/irc/channel.go @@ -1235,7 +1235,7 @@ func (channel *Channel) CanSpeak(client *Client) (bool, modes.Mode) { return false, modes.RegisteredOnly } if channel.flags.HasMode(modes.RegisteredOnlySpeak) && client.Account() == "" && - clientModes.HighestChannelUserMode() != modes.Mode(0) { + clientModes.HighestChannelUserMode() == modes.Mode(0) { return false, modes.RegisteredOnlySpeak } return true, modes.Mode('?')