Fix instances of using undefined variables.

This commit is contained in:
Lance Stout
2012-02-18 11:56:10 -08:00
parent 94b57d232d
commit 977fcc0632
6 changed files with 10 additions and 5 deletions

View File

@@ -121,7 +121,7 @@ class xep_0066(base_plugin):
iq -- The Iq stanza containing the OOB transfer request.
"""
if iq['to'] in self.url_handlers['jid']:
return self.url_handlers['jid'][jid](iq)
return self.url_handlers['jid'][iq['to']](iq)
else:
if self.url_handlers['global']:
self.url_handlers['global'](iq)