forked from External/ergo
Enable chanmode +r, fix bug with registering channels
This commit is contained in:
parent
317a804644
commit
0046025d60
5 changed files with 27 additions and 15 deletions
|
|
@ -425,6 +425,9 @@ func (channel *Channel) CanSpeak(client *Client) bool {
|
|||
if channel.flags[Moderated] && !channel.clientIsAtLeastNoMutex(client, Voice) {
|
||||
return false
|
||||
}
|
||||
if channel.flags[RegisteredOnly] && client.account == &NoAccount {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue