mirror of
https://github.com/ergochat/ergo.git
synced 2025-01-10 04:02:52 +01:00
fix #1696
This commit is contained in:
parent
21f51dcc3e
commit
99b9312847
@ -1235,7 +1235,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('?')
|
||||||
|
Loading…
Reference in New Issue
Block a user