mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-22 07:18:11 -07:00
Add 'k' snomask for kills (including those coming from dlines and klines)
This commit is contained in:
+4
-1
@@ -47,6 +47,7 @@ type Client struct {
|
||||
class *OperClass
|
||||
ctime time.Time
|
||||
destroyMutex sync.Mutex
|
||||
exitedSnomaskSent bool
|
||||
flags map[Mode]bool
|
||||
hasQuit bool
|
||||
hops int
|
||||
@@ -530,7 +531,9 @@ func (client *Client) destroy() {
|
||||
//TODO(dan): store quit message in user, if exists use that instead here
|
||||
friend.Send(nil, client.nickMaskString, "QUIT", "Exited")
|
||||
}
|
||||
client.server.snomasks.Send(sno.LocalQuits, fmt.Sprintf(ircfmt.Unescape("%s$r quit"), client.nick))
|
||||
if !client.exitedSnomaskSent {
|
||||
client.server.snomasks.Send(sno.LocalQuits, fmt.Sprintf(ircfmt.Unescape("%s$r exited the network"), client.nick))
|
||||
}
|
||||
}
|
||||
|
||||
// SendSplitMsgFromClient sends an IRC PRIVMSG/NOTICE coming from a specific client.
|
||||
|
||||
Reference in New Issue
Block a user