Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mrDoctorWho/vk4xmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/groupchats.py')
-rw-r--r--extensions/groupchats.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/extensions/groupchats.py b/extensions/groupchats.py
index 1d86f9d..d359641 100644
--- a/extensions/groupchats.py
+++ b/extensions/groupchats.py
@@ -344,6 +344,7 @@ class Chat(object):
"""
A callback which called after attempt to create the chat
"""
+ frm = stanza.getFrom()
if not frm:
logger.critical("no from in stanza! %s", stanza)
return
@@ -431,7 +432,12 @@ class Chat(object):
Gets user object by chat jid
"""
user = None
- creator, id, domain = Chat.getParts(source)
+ parts = Chat.getParts(source)
+ if len(parts) == 3:
+ creator, id, domain = parts
+ else:
+ logger.error("groupchats: we didn't get all parts! parts: %s. (jid: %s)", repr(parts), source)
+ return None
if creator and domain == ConferenceServer:
user = Chat.getUserByID(creator)
if not user: