mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-22 18:52:41 +01:00
account-tag: Fix sending on PRIVMSG/NOTICE
This commit is contained in:
parent
8abffde6a0
commit
9162d0da61
@ -590,7 +590,7 @@ func privmsgHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool
|
|||||||
if !user.capabilities[MessageTags] {
|
if !user.capabilities[MessageTags] {
|
||||||
clientOnlyTags = nil
|
clientOnlyTags = nil
|
||||||
}
|
}
|
||||||
user.Send(clientOnlyTags, client.nickMaskString, "PRIVMSG", user.nick, message)
|
user.SendFromClient(client, clientOnlyTags, client.nickMaskString, "PRIVMSG", user.nick, message)
|
||||||
if user.flags[Away] {
|
if user.flags[Away] {
|
||||||
//TODO(dan): possibly implement cooldown of away notifications to users
|
//TODO(dan): possibly implement cooldown of away notifications to users
|
||||||
client.Send(nil, server.name, RPL_AWAY, user.nick, user.awayMessage)
|
client.Send(nil, server.name, RPL_AWAY, user.nick, user.awayMessage)
|
||||||
@ -883,7 +883,7 @@ func noticeHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
|
|||||||
if !user.capabilities[MessageTags] {
|
if !user.capabilities[MessageTags] {
|
||||||
clientOnlyTags = nil
|
clientOnlyTags = nil
|
||||||
}
|
}
|
||||||
user.Send(clientOnlyTags, client.nickMaskString, "NOTICE", user.nick, message)
|
user.SendFromClient(client, clientOnlyTags, client.nickMaskString, "NOTICE", user.nick, message)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user