3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-22 11:59:40 +01:00
This commit is contained in:
Shivaram Lingamneni 2021-06-18 18:26:45 -04:00
parent 8659683fee
commit a09ea9a506

View File

@ -1309,7 +1309,7 @@ func (channel *Channel) CanSpeak(client *Client) (bool, modes.Mode) {
return false, modes.RegisteredOnly return false, modes.RegisteredOnly
} }
if channel.flags.HasMode(modes.RegisteredOnlySpeak) && client.Account() == "" && if channel.flags.HasMode(modes.RegisteredOnlySpeak) && client.Account() == "" &&
clientModes.HighestChannelUserMode() != modes.Mode(0) { clientModes.HighestChannelUserMode() == modes.Mode(0) {
return false, modes.RegisteredOnlySpeak return false, modes.RegisteredOnlySpeak
} }
return true, modes.Mode('?') return true, modes.Mode('?')