Parse <presence> and <message> stanzas.
authorChris Jones <chris@cjones.org>
Wed, 28 Dec 2011 11:57:29 -0700
changeset 16 b839e37b3f29
parent 15 aa2cf77f0ed3
child 17 d269d9c0fc8e
Parse <presence> and <message> stanzas.
stream.go
--- a/stream.go	Wed Dec 28 11:55:31 2011 -0700
+++ b/stream.go	Wed Dec 28 11:57:29 2011 -0700
@@ -121,6 +121,10 @@
 			obj = &auth{}
 		case "jabber:client iq":
 			obj = &Iq{}
+		case "jabber:client message":
+			obj = &Message{}
+		case "jabber:client presence":
+			obj = &Presence{}
 		default:
 			obj = &Unrecognized{}
 			log.Printf("Ignoring unrecognized: %s %s\n",