1
0
Fork 0
forked from External/ergo

Enable chanmode +r, fix bug with registering channels

This commit is contained in:
Daniel Oaks 2017-03-28 17:32:03 +10:00
parent 317a804644
commit 0046025d60
5 changed files with 27 additions and 15 deletions

View file

@ -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
}