summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tabs.py3
1 files changed, 2 insertions, 1 deletions
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):