Minor cleanup

This commit is contained in:
Mickael Remond
2018-02-13 22:07:15 +01:00
parent 24b8d7da3d
commit d6bedfb033
3 changed files with 6 additions and 2 deletions

View File

@@ -41,10 +41,13 @@ func main() {
reply := p.MakeError(xError)
component.xmpp.Send(&reply)
}
case xmpp.Message:
fmt.Println("Received message:", p.Body)
case xmpp.Presence:
fmt.Println("Received presence:", p.Type)
default:
fmt.Println("ignoring packet:", packet)
}