3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-26 05:49:25 +01:00
This commit is contained in:
Shivaram Lingamneni 2019-02-13 15:09:23 -05:00
parent b7ec121c19
commit e2e07c0eee

View File

@ -204,11 +204,11 @@ func (channel *Channel) ApplyChannelModeChanges(client *Client, isSamode bool, c
switch change.Op { switch change.Op {
case modes.Add: case modes.Add:
channel.setKey(change.Arg) channel.setKey(change.Arg)
applied = append(applied, change)
case modes.Remove: case modes.Remove:
channel.setKey("") channel.setKey("")
applied = append(applied, change)
} }
applied = append(applied, change)
case modes.InviteOnly, modes.Moderated, modes.NoOutside, modes.OpOnlyTopic, modes.RegisteredOnly, modes.Secret, modes.ChanRoleplaying: case modes.InviteOnly, modes.Moderated, modes.NoOutside, modes.OpOnlyTopic, modes.RegisteredOnly, modes.Secret, modes.ChanRoleplaying:
if change.Op == modes.List { if change.Op == modes.List {