summaryrefslogtreecommitdiffstats
path: root/connection
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2010-05-03 03:37:21 +0200
committerMatthias Schiffer <matthias@gamezock.de>2010-05-03 03:37:21 +0200
commit06e947d1a30abb9578ae820780471a3e9d7affac (patch)
tree8ec78194aa38d4ff6680032f573558ff6b0e418e /connection
parent323d31514f7e438df5883ad6cb9e17cce6a296b3 (diff)
downloadcurunir-06e947d1a30abb9578ae820780471a3e9d7affac.tar
curunir-06e947d1a30abb9578ae820780471a3e9d7affac.zip
Added credits
Diffstat (limited to 'connection')
-rw-r--r--connection/xmpp.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/connection/xmpp.py b/connection/xmpp.py
index 4facfe8..dfdeb28 100644
--- a/connection/xmpp.py
+++ b/connection/xmpp.py
@@ -45,15 +45,23 @@ class MucHandler(MucRoomHandler):
if(not self.room_state.joined or user.same_as(self.room_state.me)):
return
+ status = ''
+ if stanza.get_status() != None:
+ status = stanza.get_status()
+
for mod in self.client.module_manager.modules.itervalues():
- mod.join(stanza.get_from().bare().as_unicode(), stanza.get_from().resource, stanza.get_show(), stanza.get_status(), self)
+ mod.join(stanza.get_from().bare().as_unicode(), stanza.get_from().resource, stanza.get_show(), status, self)
def user_left(self, user, stanza):
if(not self.room_state.joined or user.same_as(self.room_state.me)):
return
+ status = ''
+ if stanza.get_status() != None:
+ status = stanza.get_status()
+
for mod in self.client.module_manager.modules.itervalues():
- mod.leave(stanza.get_from().bare().as_unicode(), stanza.get_from().resource, stanza.get_show(), stanza.get_status(), self)
+ mod.leave(stanza.get_from().bare().as_unicode(), stanza.get_from().resource, stanza.get_show(), status, self)
def subject_changed(self, user, stanza):
topic = ''