mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-26 05:49:25 +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 {
|
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user