3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-22 18:52:41 +01:00

Merge pull request #1699 from slingamn/issue1696_mode

fix #1696
This commit is contained in:
Shivaram Lingamneni 2021-06-18 19:06:33 -04:00 committed by GitHub
commit 6786b87fbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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('?')

@ -1 +1 @@
Subproject commit a7d74369297e4c2d19ede914b5524d0dafb27173
Subproject commit e0e52f225d3f8364d339e556bf990107dfa266dd