mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-14 16:09:32 +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 {
|
if member.Account() == change.Arg {
|
||||||
applied, change := channel.applyModeToMember(client, change, rb)
|
applied, change := channel.applyModeToMember(client, change, rb)
|
||||||
if applied {
|
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)
|
rb)
|
||||||
if applied {
|
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"))
|
csNotice(rb, client.t("Successfully granted operator privileges"))
|
||||||
|
Loading…
Reference in New Issue
Block a user