mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-22 20:09:41 +01:00
fix account tags
This commit is contained in:
parent
ad73d68807
commit
b139386391
@ -727,7 +727,7 @@ func (client *Client) SendSplitMsgFromClient(msgid string, from *Client, tags *m
|
|||||||
// Adds account-tag to the line as well.
|
// 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 {
|
func (client *Client) SendFromClient(msgid string, from *Client, tags *map[string]ircmsg.TagValue, command string, params ...string) error {
|
||||||
// attach account-tag
|
// attach account-tag
|
||||||
if client.capabilities.Has(caps.AccountTag) && client.LoggedIntoAccount() {
|
if client.capabilities.Has(caps.AccountTag) && from.LoggedIntoAccount() {
|
||||||
if tags == nil {
|
if tags == nil {
|
||||||
tags = ircmsg.MakeTags("account", from.AccountName())
|
tags = ircmsg.MakeTags("account", from.AccountName())
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user