mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-11 06:29:29 +01:00
use server name as source for chanserv mode changes, for consistency
This commit is contained in:
parent
7cfb298617
commit
a8ffb11deb
@ -265,7 +265,7 @@ func csAmodeHandler(server *Server, client *Client, command string, params []str
|
||||
if member.Account() == change.Arg {
|
||||
applied, change := channel.applyModeToMember(client, change, rb)
|
||||
if applied {
|
||||
announceCmodeChanges(channel, modes.ModeChanges{change}, chanservMask, "*", "", rb)
|
||||
announceCmodeChanges(channel, modes.ModeChanges{change}, server.name, "*", "", rb)
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -312,7 +312,7 @@ func csOpHandler(server *Server, client *Client, command string, params []string
|
||||
},
|
||||
rb)
|
||||
if applied {
|
||||
announceCmodeChanges(channelInfo, modes.ModeChanges{change}, chanservMask, "*", "", rb)
|
||||
announceCmodeChanges(channelInfo, modes.ModeChanges{change}, server.name, "*", "", rb)
|
||||
}
|
||||
|
||||
csNotice(rb, client.t("Successfully granted operator privileges"))
|
||||
|
Loading…
Reference in New Issue
Block a user