mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-23 03:02:48 +01:00
channel: Server opers shouldn't override nooutside, reggedonly and moderated modes. if they want to do that sort of thing, they have SAMODE and all to be explicit about it
This commit is contained in:
parent
e3a0387cf5
commit
b8d47c3e4f
@ -425,11 +425,6 @@ func (channel *Channel) CanSpeak(client *Client) bool {
|
|||||||
channel.membersMutex.RLock()
|
channel.membersMutex.RLock()
|
||||||
defer channel.membersMutex.RUnlock()
|
defer channel.membersMutex.RUnlock()
|
||||||
|
|
||||||
// server operators override nooutside, reggedonly, moderated etc.
|
|
||||||
// TODO(dan): there should probably instead be a SAPRIVMSG instead that forces this instead of doing it this way...
|
|
||||||
if client.flags[Operator] {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
if channel.flags[NoOutside] && !channel.members.Has(client) {
|
if channel.flags[NoOutside] && !channel.members.Has(client) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user