3
0
mirror of https://github.com/ergochat/ergo.git synced 2025-01-10 12:12:37 +01:00

Merge pull request #1297 from slingamn/issue1295_relaymsg

fix #1295
This commit is contained in:
Shivaram Lingamneni 2020-10-01 06:44:58 -07:00 committed by GitHub
commit a17628eae1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -546,7 +546,7 @@ oper-classes:
- "local_unban"
- "nofakelag"
- "roleplay"
- "relaymsg-anywhere"
- "relaymsg"
# network operator
"network-oper":

View File

@ -574,7 +574,7 @@ oper-classes:
- "local_unban"
- "nofakelag"
- "roleplay"
- "relaymsg-anywhere"
- "relaymsg"
# network operator
"network-oper":

View File

@ -2430,7 +2430,7 @@ func relaymsgHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *
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 {
rb.Add(nil, server.name, "FAIL", "RELAYMSG", "NOT_PRIVED", client.t("You cannot relay messages to this channel"))
return false