From f0b03ceee7c24066920f30422e462f816e37cedb Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 3 Feb 2013 19:53:32 +0100 Subject: Fix a traceback on the completion of /correct when no message has been sent yet --- src/tabs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tabs.py b/src/tabs.py index 85f0ef33..609c57c0 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -621,7 +621,8 @@ class ChatTab(Tab): self.command_say(line, correct=True) def completion_correct(self, the_input): - return the_input.auto_completion([self.last_sent_message['body']], '', quotify=False) + if self.last_sent_message: + return the_input.auto_completion([self.last_sent_message['body']], '', quotify=False) @property def inactive(self): -- cgit v1.2.3