summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-30 16:09:09 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-30 16:09:09 +0200
commit301ac21f2a4b6032d05fba362d167bf182404ee6 (patch)
tree71def1385a5c35d53994e95fac074b91d0eeafc5 /module/plugins/hooks
parentencoding fixes (diff)
downloadpyload-301ac21f2a4b6032d05fba362d167bf182404ee6.tar.xz
little fixes
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r--module/plugins/hooks/ClickAndLoad.py2
-rw-r--r--module/plugins/hooks/ExternalScripts.py2
-rw-r--r--module/plugins/hooks/XMPPInterface.py11
3 files changed, 3 insertions, 12 deletions
diff --git a/module/plugins/hooks/ClickAndLoad.py b/module/plugins/hooks/ClickAndLoad.py
index b9824b863..fcbb27c21 100644
--- a/module/plugins/hooks/ClickAndLoad.py
+++ b/module/plugins/hooks/ClickAndLoad.py
@@ -43,7 +43,7 @@ class ClickAndLoad(Hook):
thread.start_new_thread(proxy, (ip, self.port, 9666))
except:
- self.logger.error("ClickAndLoad port already in use.")
+ self.log.error("ClickAndLoad port already in use.")
def proxy(*settings):
diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py
index a3ed2f168..111b60d22 100644
--- a/module/plugins/hooks/ExternalScripts.py
+++ b/module/plugins/hooks/ExternalScripts.py
@@ -20,7 +20,7 @@
from module.plugins.Hook import Hook
import subprocess
-from os import listdir, sep
+from os import listdir
from os.path import join
import sys
diff --git a/module/plugins/hooks/XMPPInterface.py b/module/plugins/hooks/XMPPInterface.py
index bfd60d271..b2d8f301b 100644
--- a/module/plugins/hooks/XMPPInterface.py
+++ b/module/plugins/hooks/XMPPInterface.py
@@ -18,20 +18,11 @@
@interface-version: 0.2
"""
-import socket
-import sys
-from threading import Thread
-import time
-from time import sleep
-from traceback import print_exc
-
-from pyxmpp.all import JID,Iq,Presence,Message,StreamError
+from pyxmpp.all import JID,Message
from pyxmpp.jabber.client import JabberClient
from pyxmpp.interface import implements
from pyxmpp.interfaces import *
-from pyxmpp.streamtls import TLSSettings
-from module.plugins.Hook import Hook
from module.plugins.hooks.IRCInterface import IRCInterface
class XMPPInterface(IRCInterface, JabberClient):