summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-02-07 22:11:27 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-02-07 22:11:27 +0100
commita67b1efd6ef96b9f942dfb521ede1d07eb1b0ed9 (patch)
tree1b8af90c4d2e6af2795c2f980f5206a4ea9e17d7 /module/plugins
parentlittle fix (diff)
downloadpyload-a67b1efd6ef96b9f942dfb521ede1d07eb1b0ed9.tar.xz
closed #234
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/AccountManager.py2
-rw-r--r--module/plugins/hooks/CaptchaTrader.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/AccountManager.py b/module/plugins/AccountManager.py
index d0955ecee..bd0871705 100644
--- a/module/plugins/AccountManager.py
+++ b/module/plugins/AccountManager.py
@@ -21,6 +21,7 @@ from os.path import exists
from shutil import copy
from module.PullEvents import AccountUpdateEvent
+from module.utils import chmod
ACC_VERSION = 1
@@ -127,6 +128,7 @@ class AccountManager():
f.write("\t@%s %s\n" % (option, " ".join(values)))
f.close()
+ chmod(f.name, 0600)
#----------------------------------------------------------------------
diff --git a/module/plugins/hooks/CaptchaTrader.py b/module/plugins/hooks/CaptchaTrader.py
index 77c30b7d7..f98b5fab0 100644
--- a/module/plugins/hooks/CaptchaTrader.py
+++ b/module/plugins/hooks/CaptchaTrader.py
@@ -123,7 +123,7 @@ class CaptchaTrader(Hook):
def captchaWrong(self, task):
if task.data.has_key("ticket"):
ticket = task.data["ticket"]
- self.respond(ticket, True)
+ self.respond(ticket, False)
def processCaptcha(self, task):
c = task.captchaFile