mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
Fix channel parting.
This commit is contained in:
parent
24ad2172a8
commit
2dba5f4c47
1 changed files with 6 additions and 2 deletions
|
|
@ -55,10 +55,14 @@ func (ch *Channel) Part(cl *Client, message string) {
|
|||
return
|
||||
}
|
||||
|
||||
delete(ch.members, cl)
|
||||
delete(cl.channels, ch)
|
||||
if message == "" {
|
||||
message = cl.Nick()
|
||||
}
|
||||
|
||||
ch.Send(RplPart(ch, cl, message), nil)
|
||||
|
||||
delete(ch.members, cl)
|
||||
delete(cl.channels, ch)
|
||||
}
|
||||
|
||||
func (ch *Channel) PrivMsg(cl *Client, message string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue