summaryrefslogtreecommitdiff
path: root/slixmpp/componentxmpp.py
diff options
context:
space:
mode:
Diffstat (limited to 'slixmpp/componentxmpp.py')
-rw-r--r--slixmpp/componentxmpp.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/slixmpp/componentxmpp.py b/slixmpp/componentxmpp.py
index 68669c06..868798d1 100644
--- a/slixmpp/componentxmpp.py
+++ b/slixmpp/componentxmpp.py
@@ -46,8 +46,13 @@ class ComponentXMPP(BaseXMPP):
Defaults to ``False``.
"""
- def __init__(self, jid, secret, host=None, port=None,
- plugin_config={}, plugin_whitelist=[], use_jc_ns=False):
+ def __init__(self, jid, secret, host=None, port=None, plugin_config=None, plugin_whitelist=None, use_jc_ns=False):
+
+ if not plugin_whitelist:
+ plugin_whitelist = []
+ if not plugin_config:
+ plugin_config = {}
+
if use_jc_ns:
default_ns = 'jabber:client'
else: