aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index d23be42..a4e0e78 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -156,6 +156,12 @@ class WeechatWrapper(object):
else:
return decode_from_utf8(orig_attr)
+ # Ensure all lines sent to weechat specifies a prefix. For lines after the
+ # first, we want to disable the prefix, which is done by specifying a space.
+ def prnt_date_tags(self, buffer, date, tags, message):
+ message = message.replace("\n", "\n \t")
+ return self.wrap_for_utf8(self.wrapped_class.prnt_date_tags)(buffer, date, tags, message)
+
##### Helpers