From b139386391473bc094861678be3b0dbc32793dab Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sun, 11 Feb 2018 06:31:23 -0500 Subject: [PATCH] fix account tags --- irc/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/client.go b/irc/client.go index 8fa15dac..e632b3c0 100644 --- a/irc/client.go +++ b/irc/client.go @@ -727,7 +727,7 @@ func (client *Client) SendSplitMsgFromClient(msgid string, from *Client, tags *m // Adds account-tag to the line as well. func (client *Client) SendFromClient(msgid string, from *Client, tags *map[string]ircmsg.TagValue, command string, params ...string) error { // attach account-tag - if client.capabilities.Has(caps.AccountTag) && client.LoggedIntoAccount() { + if client.capabilities.Has(caps.AccountTag) && from.LoggedIntoAccount() { if tags == nil { tags = ircmsg.MakeTags("account", from.AccountName()) } else {