mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
fix #1295
This commit is contained in:
parent
a36461415f
commit
127a03ccf3
3 changed files with 3 additions and 3 deletions
|
|
@ -546,7 +546,7 @@ oper-classes:
|
||||||
- "local_unban"
|
- "local_unban"
|
||||||
- "nofakelag"
|
- "nofakelag"
|
||||||
- "roleplay"
|
- "roleplay"
|
||||||
- "relaymsg-anywhere"
|
- "relaymsg"
|
||||||
|
|
||||||
# network operator
|
# network operator
|
||||||
"network-oper":
|
"network-oper":
|
||||||
|
|
|
||||||
|
|
@ -574,7 +574,7 @@ oper-classes:
|
||||||
- "local_unban"
|
- "local_unban"
|
||||||
- "nofakelag"
|
- "nofakelag"
|
||||||
- "roleplay"
|
- "roleplay"
|
||||||
- "relaymsg-anywhere"
|
- "relaymsg"
|
||||||
|
|
||||||
# network operator
|
# network operator
|
||||||
"network-oper":
|
"network-oper":
|
||||||
|
|
|
||||||
|
|
@ -2430,7 +2430,7 @@ func relaymsgHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
allowedToRelay := client.HasRoleCapabs("relaymsg-anywhere") || (config.Server.Relaymsg.AvailableToChanops && channel.ClientIsAtLeast(client, modes.ChannelOperator))
|
allowedToRelay := client.HasRoleCapabs("relaymsg") || (config.Server.Relaymsg.AvailableToChanops && channel.ClientIsAtLeast(client, modes.ChannelOperator))
|
||||||
if !allowedToRelay {
|
if !allowedToRelay {
|
||||||
rb.Add(nil, server.name, "FAIL", "RELAYMSG", "NOT_PRIVED", client.t("You cannot relay messages to this channel"))
|
rb.Add(nil, server.name, "FAIL", "RELAYMSG", "NOT_PRIVED", client.t("You cannot relay messages to this channel"))
|
||||||
return false
|
return false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue