summaryrefslogtreecommitdiff
path: root/src/multiuserchat.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-06-13 15:40:03 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-06-13 15:40:03 +0000
commitaccfe046bea252f12ecd441bee348d3cd7e1bf84 (patch)
tree94a825763c0c2cdf1d58f09d4e7be4d767a9b99c /src/multiuserchat.py
parentb723a94efc19f1af7ecd14bb3d94ceb9e646a169 (diff)
downloadpoezio-accfe046bea252f12ecd441bee348d3cd7e1bf84.tar.gz
poezio-accfe046bea252f12ecd441bee348d3cd7e1bf84.tar.bz2
poezio-accfe046bea252f12ecd441bee348d3cd7e1bf84.tar.xz
poezio-accfe046bea252f12ecd441bee348d3cd7e1bf84.zip
/quit can have a message. fixed #1488
Diffstat (limited to 'src/multiuserchat.py')
-rw-r--r--src/multiuserchat.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/multiuserchat.py b/src/multiuserchat.py
index 4eaa696c..be4d2277 100644
--- a/src/multiuserchat.py
+++ b/src/multiuserchat.py
@@ -179,6 +179,16 @@ class MultiUserChat(object):
pres.setStatus(msg)
self.connection.send(pres)
+ def disconnect(self, rooms, msg):
+ """
+ """
+ for room in rooms:
+ if room.jid is None and room.joined:
+ pres = Presence(to='%s' % room.name,
+ typ='unavailable')
+ pres.setStatus(msg)
+ self.connection.send(pres)
+
def on_disconnect(self):
"""Called at disconnection"""
for room in self.rooms: