From 6b92b3cffd9b976018b7c68f2a2b3d0b5880e9e6 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Sat, 7 Aug 2010 00:28:47 +0000 Subject: Begin of a /whois command. Also, ALSMO fixed 1710 --- src/multiuserchat.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/multiuserchat.py') diff --git a/src/multiuserchat.py b/src/multiuserchat.py index 0fbedd72..7429d2bd 100644 --- a/src/multiuserchat.py +++ b/src/multiuserchat.py @@ -146,6 +146,14 @@ class MultiUserChat(object): mes.setType('chat') self.connection.send(mes) + def request_vcard(self, room_name, nickname): + """ + Request the vCard of an user, over a MUC or not + """ + request = Iq(typ='get', to='%s/%s'% (room_name, nickname)) + vcard_tag = request.addChild(name='vCard', namespace='vcard-temp') + self.connection.send(request) + def join_room(self, room, nick, password=None): """Join a new room""" pres = Presence(to='%s/%s' % (room, nick)) @@ -161,8 +169,6 @@ class MultiUserChat(object): history_tag.setAttr('maxchars', 0) else: history_tag.setAttr('maxstanzas', muc_history_length) - from common import debug - debug('%s\n'% pres) self.connection.send(pres) def quit_room(self, room, nick, msg=None): -- cgit v1.2.3