diff options
Diffstat (limited to 'buddy.go')
-rw-r--r-- | buddy.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -3,8 +3,13 @@ package main type Buddy struct { Nick string Receive chan Message + room *Room } func NewBuddy(nick string, room *Room) *Buddy { // TODO: Implement me! } + +func (b *Buddy) Leave() { + b.room.Leave(b.Nick) +} |