1
0
Fork 0
forked from External/ergo

Add 'k' snomask for kills (including those coming from dlines and klines)

This commit is contained in:
Daniel Oaks 2017-06-11 10:01:39 -06:00
parent 3ee26041ff
commit 309ec8191e
4 changed files with 28 additions and 1 deletions

View file

@ -2121,6 +2121,10 @@ func killHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
}
quitMsg := fmt.Sprintf("Killed (%s (%s))", client.nick, comment)
server.snomasks.Send(sno.LocalKills, fmt.Sprintf(ircfmt.Unescape("%s$r was killed by %s $c[grey][$r%s$c[grey]]"), target.nick, client.nick, comment))
target.exitedSnomaskSent = true
target.Quit(quitMsg)
target.destroy()
return false