summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sleekxmpp/api.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sleekxmpp/api.py b/sleekxmpp/api.py
index 25bfe0e6..3261f67f 100644
--- a/sleekxmpp/api.py
+++ b/sleekxmpp/api.py
@@ -6,6 +6,8 @@ class APIWrapper(object):
def __init__(self, api, name):
self.api = api
self.name = name
+ if name not in self.api.settings:
+ self.api.settings[name] = {}
def __getattr__(self, attr):
"""Curry API management commands with the API name."""