Skip to content
Snippets Groups Projects
Commit 8057a90e authored by Tulir Asokan's avatar Tulir Asokan :cat2:
Browse files

Don't print invite error if it's nil

parent 04e8195b
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,10 @@ func startMatrix() func() {
case roomID := <-mxbot.InviteChan:
invite := mxbot.Invites[roomID]
fmt.Printf("%s invited me to %s (%s)\n", invite.Sender, invite.Name, invite.ID)
fmt.Println(invite.Accept())
err := invite.Accept()
if err != nil {
fmt.Println("Unexpected error:", err)
}
}
}
mxbot.Stop()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment