From 5d7f017c9cacc122ef569a4c58ca2f2496c35e90 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 10 Mar 2019 13:14:15 +0000 Subject: Enum values shouldn't be all upper case --- modules/line_handler/user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/line_handler/user.py') diff --git a/modules/line_handler/user.py b/modules/line_handler/user.py index fbe136a7..4153fc1b 100644 --- a/modules/line_handler/user.py +++ b/modules/line_handler/user.py @@ -18,11 +18,11 @@ def handle_311(event): def quit(events, event): nickname = None - if event["direction"] == utils.Direction.RECV: + if event["direction"] == utils.Direction.Recv: nickname = event["prefix"].nickname reason = event["args"].get(0) - if event["direction"] == utils.Direction.RECV: + if event["direction"] == utils.Direction.Recv: nickname = event["prefix"].nickname if (not event["server"].is_own_nickname(nickname) and not event["prefix"].hostmask == "*"): -- cgit v1.3.1-10-gc9f91