From 76b0e444741788973a75bc73326769f39c9ae592 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Thu, 11 Mar 2021 00:49:12 -0500 Subject: [PATCH] fix #1534 Improve error message for CS TRANSFER --- irc/chanserv.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/irc/chanserv.go b/irc/chanserv.go index 3f912ebd..5dfcf44e 100644 --- a/irc/chanserv.go +++ b/irc/chanserv.go @@ -579,7 +579,12 @@ func csTransferHandler(service *ircService, server *Server, client *Client, comm service.Notice(rb, fmt.Sprintf(client.t("Cancelled pending transfer of channel %s"), chname)) } } else { - service.Notice(rb, client.t("Could not transfer channel")) + switch err { + case errChannelNotOwnedByAccount: + service.Notice(rb, client.t("You don't own that channel")) + default: + service.Notice(rb, client.t("Could not transfer channel")) + } } }