From 889408a7bbc256cb736a98ffecad1661902f6a65 Mon Sep 17 00:00:00 2001 From: "Vgr E. Barry" Date: Thu, 12 Jan 2017 14:13:05 -0500 Subject: [PATCH] Remove redundant lines --- src/wolfgame.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/wolfgame.py b/src/wolfgame.py index fe16da4..2b13bc4 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -497,9 +497,6 @@ def mark_simple_notify(var, wrapper, message): simple_set, value = (var.SIMPLE_NOTIFY, userhost) if account is None else (var.SIMPLE_NOTIFY_ACCS, account) action, toggle = (simple_set.discard, "off") if simple else (simple_set.add, "on") - if account is not None: - userhost = None - action(value) db.toggle_simple(account, userhost) wrapper.pm(messages["simple_" + toggle]) @@ -524,9 +521,6 @@ def mark_prefer_notice(var, wrapper, message): notice_set, value = (var.PREFER_NOTICE, userhost) if account is None else (var.PREFER_NOTICE_ACCS, account) action, toggle = (notice_set.discard, "off") if notice else (notice_set.add, "on") - if account is not None: - userhost = None - action(value) db.toggle_notice(account, userhost) wrapper.pm(messages["notice_" + toggle])