Skip to content

Commit b8d47c3

Browse files
committed
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
1 parent e3a0387 commit b8d47c3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

irc/channel.go

-5
Original file line numberDiff line numberDiff line change
@@ -425,11 +425,6 @@ func (channel *Channel) CanSpeak(client *Client) bool {
425425
channel.membersMutex.RLock()
426426
defer channel.membersMutex.RUnlock()
427427

428-
// server operators override nooutside, reggedonly, moderated etc.
429-
// TODO(dan): there should probably instead be a SAPRIVMSG instead that forces this instead of doing it this way...
430-
if client.flags[Operator] {
431-
return true
432-
}
433428
if channel.flags[NoOutside] && !channel.members.Has(client) {
434429
return false
435430
}

0 commit comments

Comments
 (0)