summaryrefslogtreecommitdiff
path: root/helpers.py
diff options
context:
space:
mode:
authorPanFritz <redstonenoobpan@gmail.com>2015-01-06 22:08:36 +0100
committerPanFritz <redstonenoobpan@gmail.com>2015-01-06 22:08:36 +0100
commitfb4aff2e04ecf69bc5bb3bb8fecb79370ef2b7a0 (patch)
treee430d701f0a1ce61ac558f87993f892472347686 /helpers.py
parentd8bd90544b44c421425877b8c617b53352de3acb (diff)
Removed 'add' condition from helpers.py toggle method
Diffstat (limited to 'helpers.py')
-rw-r--r--helpers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers.py b/helpers.py
index faf1233..24652fc 100644
--- a/helpers.py
+++ b/helpers.py
@@ -211,12 +211,12 @@ def toggle(player, ls, add = None, name = "Toggle", on = "&a%s now on!", off = "
enabled = pid in ls
# Do some checks and remove pid.
- if enabled and add == False:
+ if enabled: #and add == False:
ls.remove(pid)
msg(player, on % name)
# Do some checks and append pid.
- elif not enabled and add == True:
+ elif not enabled: # and add == True: #Sorry i fail to see the relevance of that if we want to just toggle, since if its none, none of these statements will go thru
ls.append(pid)
msg(player, off % name)