aboutsummaryrefslogtreecommitdiff
path: root/modules/line_handler/user.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-03-10 13:14:15 +0000
committerGravatar jesopo2019-03-10 13:14:25 +0000
commit5d7f017c9cacc122ef569a4c58ca2f2496c35e90 (patch)
tree297659e0c5c471d17f080c425b0417b90cf4f055 /modules/line_handler/user.py
parentpreprocess.send.* event don't have IRCChannel objects on them (diff)
signature
Enum values shouldn't be all upper case
Diffstat (limited to 'modules/line_handler/user.py')
-rw-r--r--modules/line_handler/user.py4
1 files changed, 2 insertions, 2 deletions
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 == "*"):