summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0065/proxy.py
diff options
context:
space:
mode:
authorSandro Munda <sandro.munda@guardis.com>2012-06-04 08:03:08 +0200
committerSandro Munda <sandro.munda@guardis.com>2012-06-07 18:38:56 +0200
commitcf24b870b124be3f41c496aa2a99b4c6f626e22f (patch)
tree9a5aae7dbb35b0f4aa3c3bd3179fb9c89b5cf61e /sleekxmpp/plugins/xep_0065/proxy.py
parent69cffce7dcaea56fa35f9c39299e98eb5576f20d (diff)
downloadslixmpp-cf24b870b124be3f41c496aa2a99b4c6f626e22f.tar.gz
slixmpp-cf24b870b124be3f41c496aa2a99b4c6f626e22f.tar.bz2
slixmpp-cf24b870b124be3f41c496aa2a99b4c6f626e22f.tar.xz
slixmpp-cf24b870b124be3f41c496aa2a99b4c6f626e22f.zip
Registered stanza plugin in the stanza module
Diffstat (limited to 'sleekxmpp/plugins/xep_0065/proxy.py')
-rw-r--r--sleekxmpp/plugins/xep_0065/proxy.py12
1 files changed, 2 insertions, 10 deletions
diff --git a/sleekxmpp/plugins/xep_0065/proxy.py b/sleekxmpp/plugins/xep_0065/proxy.py
index f33f7840..d9d629f6 100644
--- a/sleekxmpp/plugins/xep_0065/proxy.py
+++ b/sleekxmpp/plugins/xep_0065/proxy.py
@@ -8,23 +8,15 @@ from select import select
from uuid import uuid4
from sleekxmpp.plugins.base import base_plugin
-from sleekxmpp import Iq
-from sleekxmpp.xmlstream import register_stanza_plugin
from sleekxmpp.xmlstream.handler import Callback
from sleekxmpp.xmlstream.matcher import StanzaPath
-
from socks import socksocket, PROXY_TYPE_SOCKS5
-from stanza import Query, StreamHost, StreamHostUsed
+import stanza
-# Register the sleekxmpp logger
+# Registers the sleekxmpp logger
log = logging.getLogger(__name__)
-# Register xep_0065 stanzas
-register_stanza_plugin(Iq, Query)
-register_stanza_plugin(Query, StreamHost)
-register_stanza_plugin(Query, StreamHostUsed)
-
class xep_0065(base_plugin):
"""