Browse Source

change FAIL codes from NOT_PRIVED to PRIVS_NEEDED

tags/v2.5.0-rc1
Shivaram Lingamneni 3 years ago
parent
commit
66d90bef5e
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      irc/channel.go
  2. 1
    1
      irc/handlers.go

+ 1
- 1
irc/channel.go View File

@@ -1571,7 +1571,7 @@ func (channel *Channel) Uninvite(invitee *Client, inviter *Client, rb *ResponseB
1571 1571
 	}
1572 1572
 
1573 1573
 	if !channel.ClientIsAtLeast(inviter, modes.ChannelOperator) {
1574
-		rb.Add(nil, channel.server.name, "FAIL", "UNINVITE", "NOT_PRIVED", channel.Name(), inviter.t("You're not a channel operator"))
1574
+		rb.Add(nil, channel.server.name, "FAIL", "UNINVITE", "PRIVS_NEEDED", channel.Name(), inviter.t("You're not a channel operator"))
1575 1575
 		return
1576 1576
 	}
1577 1577
 

+ 1
- 1
irc/handlers.go View File

@@ -2548,7 +2548,7 @@ func relaymsgHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *
2548 2548
 
2549 2549
 	allowedToRelay := client.HasRoleCapabs("relaymsg") || (config.Server.Relaymsg.AvailableToChanops && channel.ClientIsAtLeast(client, modes.ChannelOperator))
2550 2550
 	if !allowedToRelay {
2551
-		rb.Add(nil, server.name, "FAIL", "RELAYMSG", "NOT_PRIVED", client.t("You cannot relay messages to this channel"))
2551
+		rb.Add(nil, server.name, "FAIL", "RELAYMSG", "PRIVS_NEEDED", client.t("You cannot relay messages to this channel"))
2552 2552
 		return false
2553 2553
 	}
2554 2554
 

Loading…
Cancel
Save