summaryrefslogtreecommitdiff
path: root/buddy.go
diff options
context:
space:
mode:
Diffstat (limited to 'buddy.go')
-rw-r--r--buddy.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/buddy.go b/buddy.go
index 0d1fb0c..750e424 100644
--- a/buddy.go
+++ b/buddy.go
@@ -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)
+}