summaryrefslogtreecommitdiff
path: root/src/text_buffer.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-03-31 16:33:10 +0200
committermathieui <mathieui@mathieui.net>2013-03-31 16:33:10 +0200
commite8fae6f24cf783de7f17f85084d53a55d14e9f89 (patch)
treed199fc687516f3d0f13b9588376c4cfc60a0fe88 /src/text_buffer.py
parentf58cd588c293f504b0c8858b207d30fa4c89b5b1 (diff)
downloadpoezio-e8fae6f24cf783de7f17f85084d53a55d14e9f89.tar.gz
poezio-e8fae6f24cf783de7f17f85084d53a55d14e9f89.tar.bz2
poezio-e8fae6f24cf783de7f17f85084d53a55d14e9f89.tar.xz
poezio-e8fae6f24cf783de7f17f85084d53a55d14e9f89.zip
Fix #2275, ref #2229
- Refactor the message handlers to be more readable - Add a group_corrections tab-specific option (#2229) - Fix issues with /correct in private tabs and conversation tabs
Diffstat (limited to 'src/text_buffer.py')
-rw-r--r--src/text_buffer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/text_buffer.py b/src/text_buffer.py
index 3f24760d..62489af8 100644
--- a/src/text_buffer.py
+++ b/src/text_buffer.py
@@ -110,9 +110,9 @@ class TextBuffer(object):
msg = self.messages[i]
if msg.identifier == old_id:
if msg.user and msg.user is not user:
- raise CorrectionError("wrong user")
+ raise CorrectionError("Different users")
elif len(msg.str_time) > 8: # ugly
- raise CorrectionError("delayed message")
+ raise CorrectionError("Delayed message")
message = self.make_message(txt, time if time else msg.time, msg.nickname, msg.nick_color, None, msg.user, new_id, highlight=highlight, old_message=msg, revisions=msg.revisions + 1)
self.messages[i] = message
log.debug('Replacing message %s with %s.', old_id, new_id)