From b8d47c3e4fe44c3ff3c67ef722b83a07881b0ca4 Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Sun, 1 Oct 2017 15:18:52 +1000 Subject: [PATCH] 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 --- irc/channel.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/irc/channel.go b/irc/channel.go index a82c1f08..b16cc834 100644 --- a/irc/channel.go +++ b/irc/channel.go @@ -425,11 +425,6 @@ func (channel *Channel) CanSpeak(client *Client) bool { channel.membersMutex.RLock() 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) { return false }