diff options
author | PanFritz <redstonenoobpan@gmail.com> | 2015-01-06 22:08:36 +0100 |
---|---|---|
committer | PanFritz <redstonenoobpan@gmail.com> | 2015-01-06 22:08:36 +0100 |
commit | fb4aff2e04ecf69bc5bb3bb8fecb79370ef2b7a0 (patch) | |
tree | e430d701f0a1ce61ac558f87993f892472347686 /helpers.py | |
parent | d8bd90544b44c421425877b8c617b53352de3acb (diff) |
Removed 'add' condition from helpers.py toggle method
Diffstat (limited to 'helpers.py')
-rw-r--r-- | helpers.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |