diff options
author | Ryan Huber <rhuber@gmail.com> | 2014-07-17 14:26:18 -0700 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2014-07-17 14:26:18 -0700 |
commit | 57430626fba6c5953dae02d00210a6cffdbb0415 (patch) | |
tree | f946d8e53be0b5b69b32a09996d302e69fa91e8c | |
parent | c4bfded24ee7008ac637976a32f9845b8d7597a1 (diff) | |
download | wee-slack-57430626fba6c5953dae02d00210a6cffdbb0415.tar.gz |
remove redundant global
-rw-r--r-- | wee_slack.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/wee_slack.py b/wee_slack.py index 4f47e3e..d937a5d 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -46,13 +46,11 @@ def command_back(args): def command_neveraway(args): global never_away if never_away == True: - global never_away never_away = False w.prnt("", "unset never_away") else: - global never_away never_away = True - w.prnt("", "set never_away") + w.prnt("", "set as never_away") def command_printvar(args): w.prnt("", str(eval(args))) |