mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +01:00
fix #374
This commit is contained in:
parent
b7ec121c19
commit
e2e07c0eee
@ -204,11 +204,11 @@ func (channel *Channel) ApplyChannelModeChanges(client *Client, isSamode bool, c
|
||||
switch change.Op {
|
||||
case modes.Add:
|
||||
channel.setKey(change.Arg)
|
||||
|
||||
applied = append(applied, change)
|
||||
case modes.Remove:
|
||||
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:
|
||||
if change.Op == modes.List {
|
||||
|
Loading…
Reference in New Issue
Block a user