mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-22 11:59:40 +01:00
commit
0d0d9e72b4
@ -270,9 +270,13 @@ func csAmodeHandler(service *ircService, server *Server, client *Client, command
|
|||||||
// #729: apply change to current membership
|
// #729: apply change to current membership
|
||||||
for _, member := range channel.Members() {
|
for _, member := range channel.Members() {
|
||||||
if member.Account() == change.Arg {
|
if member.Account() == change.Arg {
|
||||||
applied, change := channel.applyModeToMember(client, change, rb)
|
// applyModeToMember takes the nickname, not the account name,
|
||||||
|
// so translate:
|
||||||
|
modeChange := change
|
||||||
|
modeChange.Arg = member.Nick()
|
||||||
|
applied, modeChange := channel.applyModeToMember(client, modeChange, rb)
|
||||||
if applied {
|
if applied {
|
||||||
announceCmodeChanges(channel, modes.ModeChanges{change}, server.name, "*", "", false, rb)
|
announceCmodeChanges(channel, modes.ModeChanges{modeChange}, server.name, "*", "", false, rb)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user