From 56a481ff8e67a523b81f26b771fc31e8eb1ec28b Mon Sep 17 00:00:00 2001 From: Matt Goodall Date: Mon, 9 Jul 2012 02:49:04 +0100 Subject: [PATCH] No client config means default config. --- src/xmpp/client.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xmpp/client.go b/src/xmpp/client.go index 9a13c56..a65c0d3 100644 --- a/src/xmpp/client.go +++ b/src/xmpp/client.go @@ -22,6 +22,10 @@ type ClientConfig struct { // Create a client XMPP over the stream. func NewClientXMPP(stream *Stream, jid JID, password string, config *ClientConfig) (*XMPP, error) { + if config == nil { + config = &ClientConfig{} + } + for { if err := startClient(stream, jid); err != nil {