From 8cc4846602011db396df621d2e84e5808a6f3441 Mon Sep 17 00:00:00 2001 From: Ishan Jain Date: Sat, 15 Apr 2017 05:30:46 +0530 Subject: [PATCH] Fix for #14 --- securitybot/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/securitybot/commands.py b/securitybot/commands.py index c1f1a94..099f052 100644 --- a/securitybot/commands.py +++ b/securitybot/commands.py @@ -66,8 +66,8 @@ def ignore(bot, user, args): # Find correct task in user object task = None - if which == 'last' and user.old_tasks: - task = user.old_tasks[-1] + if which == 'last' and user.tasks: + task = user.tasks[-1] elif which == 'current' and user.pending_task: task = user.pending_task if task is None: