Send PART msg to channel for quitting users
This commit is contained in:
parent
33b787a969
commit
e70874e0d6
1 changed files with 2 additions and 1 deletions
|
@ -130,9 +130,10 @@ func (sv *Server) dispatch() {
|
|||
case cl := <-sv.DelClient:
|
||||
nick := cl.Name()
|
||||
cl.Destroy()
|
||||
for _, ch := range sv.chUsers {
|
||||
for chname, ch := range sv.chUsers {
|
||||
if _, exists := ch[nick]; exists {
|
||||
delete(ch, nick)
|
||||
sv.sendMsg(irc.M(nick, "PART", chname, "quit"))
|
||||
}
|
||||
}
|
||||
delete(sv.clients, nick)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue