diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-06-13 15:40:03 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-06-13 15:40:03 +0000 |
commit | accfe046bea252f12ecd441bee348d3cd7e1bf84 (patch) | |
tree | 94a825763c0c2cdf1d58f09d4e7be4d767a9b99c /src/multiuserchat.py | |
parent | b723a94efc19f1af7ecd14bb3d94ceb9e646a169 (diff) | |
download | poezio-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.py | 10 |
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: |