mirror of
https://github.com/jeremyd/ergo.git
synced 2026-05-08 13:19:08 -07:00
I think I get IRC protocol now.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user