Mercurial > libervia-backend
comparison plugins/plugin_xep_0077.py @ 40:6f0699ba0329
plugin XEP-0077: minor log fix
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 19 Dec 2009 18:13:04 +1100 |
parents | 2e3411a6baad |
children | 4392f1fdb064 |
comparison
equal
deleted
inserted
replaced
39:2e3411a6baad | 40:6f0699ba0329 |
---|---|
127 return id | 127 return id |
128 | 128 |
129 def in_band_register(self, target): | 129 def in_band_register(self, target): |
130 """register to a target JID""" | 130 """register to a target JID""" |
131 to_jid = jid.JID(target) | 131 to_jid = jid.JID(target) |
132 debug("Asking registration for [%s]" % target) | 132 debug("Asking registration for [%s]" % to_jid.full()) |
133 reg_request=IQ(self.host.xmlstream,'get') | 133 reg_request=IQ(self.host.xmlstream,'get') |
134 reg_request["from"]=self.host.me.full() | 134 reg_request["from"]=self.host.me.full() |
135 reg_request["to"] = to_jid.full() | 135 reg_request["to"] = to_jid.full() |
136 query=reg_request.addElement('query', NS_REG) | 136 query=reg_request.addElement('query', NS_REG) |
137 reg_request.send(to_jid.full()).addCallbacks(self.reg_ok, self.reg_err) | 137 reg_request.send(to_jid.full()).addCallbacks(self.reg_ok, self.reg_err) |