mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-22 02:52:00 -08:00
I think I get IRC protocol now.
This commit is contained in:
parent
26ef45290a
commit
2cbf65564e
9 changed files with 208 additions and 147 deletions
|
|
@ -79,6 +79,10 @@ func (ch *Channel) Part(cl *Client, message string) {
|
|||
|
||||
delete(ch.members, cl)
|
||||
delete(cl.channels, ch)
|
||||
|
||||
if len(ch.members) == 0 {
|
||||
ch.server.DeleteChannel(ch)
|
||||
}
|
||||
}
|
||||
|
||||
func (ch *Channel) PrivMsg(cl *Client, message string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue