From cac52bbf8b0e928a83a29b744bff20240c8e7354 Mon Sep 17 00:00:00 2001
From: RaNaN <Mast3rRaNaN@hotmail.de>
Date: Wed, 6 Oct 2010 22:24:17 +0200
Subject: freakshare premium, closed #146, closed #147

---
 module/AccountManager.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'module/AccountManager.py')

diff --git a/module/AccountManager.py b/module/AccountManager.py
index 5dedacf3c..c155edfae 100644
--- a/module/AccountManager.py
+++ b/module/AccountManager.py
@@ -103,7 +103,7 @@ class AccountManager():
                 
             elif line.startswith("@"):
                 option = line[1:].split()
-                self.accounts[plugin][name]["options"][option[0]] = [option[1]] if len(option) < 3 else option[1:]
+                self.accounts[plugin][name]["options"][option[0]] = True if len(option) < 2 else ([option[1]] if len(option) < 3 else option[1:])
                 
             elif ":" in line:
                 name, sep, pw = line.partition(":")
-- 
cgit v1.2.3