forked from jshiffer/go-xmpp
Minor cleanup
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user