summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-02-03 19:53:32 +0100
committermathieui <mathieui@mathieui.net>2013-02-03 19:53:32 +0100
commitf0b03ceee7c24066920f30422e462f816e37cedb (patch)
tree2f56d97010c7442bf9599a7d7e6edceb52b0cddd /src
parentaab20c1e294148bcee77745db047c1c299c3402a (diff)
downloadpoezio-f0b03ceee7c24066920f30422e462f816e37cedb.tar.gz
poezio-f0b03ceee7c24066920f30422e462f816e37cedb.tar.bz2
poezio-f0b03ceee7c24066920f30422e462f816e37cedb.tar.xz
poezio-f0b03ceee7c24066920f30422e462f816e37cedb.zip
Fix a traceback on the completion of /correct
when no message has been sent yet
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):