diff options
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) |