mirror of
https://github.com/jeremyd/ergo.git
synced 2026-05-11 14:41:15 -07:00
Fix channel parting.
This commit is contained in:
@@ -55,10 +55,14 @@ func (ch *Channel) Part(cl *Client, message string) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
delete(ch.members, cl)
|
if message == "" {
|
||||||
delete(cl.channels, ch)
|
message = cl.Nick()
|
||||||
|
}
|
||||||
|
|
||||||
ch.Send(RplPart(ch, cl, message), nil)
|
ch.Send(RplPart(ch, cl, message), nil)
|
||||||
|
|
||||||
|
delete(ch.members, cl)
|
||||||
|
delete(cl.channels, ch)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ch *Channel) PrivMsg(cl *Client, message string) {
|
func (ch *Channel) PrivMsg(cl *Client, message string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user