diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-01-31 03:07:30 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-01-31 03:07:30 +0000 |
commit | dbab1876f85e60ebda430b4b5d2c645b73ef3680 (patch) | |
tree | 18716a92c5d0dd4459544861d58aa5cf36f5eb27 /src/multiuserchat.py | |
parent | 54266c0c7fd9ff17ffc49fed86ef420837e09af4 (diff) | |
download | poezio-dbab1876f85e60ebda430b4b5d2c645b73ef3680.tar.gz poezio-dbab1876f85e60ebda430b4b5d2c645b73ef3680.tar.bz2 poezio-dbab1876f85e60ebda430b4b5d2c645b73ef3680.tar.xz poezio-dbab1876f85e60ebda430b4b5d2c645b73ef3680.zip |
fixed #1075
Diffstat (limited to 'src/multiuserchat.py')
-rw-r--r-- | src/multiuserchat.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/multiuserchat.py b/src/multiuserchat.py index 05b9f67a..3327b140 100644 --- a/src/multiuserchat.py +++ b/src/multiuserchat.py @@ -197,3 +197,10 @@ class MultiUserChat(object): """Change the nickname""" pres = Presence(to='%s/%s' % (room, nick)) self.connection.send(pres) + + def change_show(self, room, nick, show, status): + pres = Presence(to='%s/%s' % (room, nick)) + pres.setShow(show) + if status: + pres.setStatus(status) + self.connection.send(pres) |