summaryrefslogtreecommitdiff
path: root/src/multiuserchat.py
diff options
context:
space:
mode:
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: