From b5a2497b00327f3b13a9eba7fee73bcd04deed3c Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Tue, 8 Oct 2013 11:32:17 +1300 Subject: [PATCH 1/2] fix correction --- plugins/correction.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/correction.py b/plugins/correction.py index e5b277e..517c6e3 100644 --- a/plugins/correction.py +++ b/plugins/correction.py @@ -20,11 +20,11 @@ def correction(inp, message=None, input=None, notice=None, db=None): message = last_message[1].replace("\x01ACTION ", "/me ").replace("\x01", "") else: message = last_message[1] - message("{} meant to say: {}".format(nick, message.replace(find, "\x02" + replace + "\x02"))) + message(u"{} meant to say: {}".format(message.replace(find, "\x02" + replace + "\x02"), nick)) else: - notice("{} can't be found in your last message".format(find)) + notice(u"{} can't be found in your last message".format(find)) else: if nick == input.nick: - notice("I haven't seen you say anything here yet") + notice(u"I haven't seen you say anything here yet") else: - notice("I haven't seen {} say anything here yet".format(nick)) + notice(u"I haven't seen {} say anything here yet".format(nick)) From 12203d25801522e3b3bd4fe9025a5d14325181bf Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Tue, 8 Oct 2013 11:33:00 +1300 Subject: [PATCH 2/2] -.- --- plugins/reddit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/reddit.py b/plugins/reddit.py index 2b63bb6..cdf619b 100644 --- a/plugins/reddit.py +++ b/plugins/reddit.py @@ -20,7 +20,7 @@ def reddit_url(match): timeago = thread.xpath("//div[@id='siteTable']//p[@class='tagline']/time/text()")[0] comments = thread.xpath("//div[@id='siteTable']//a[@class='comments']/text()")[0] - return '\x02{}\x02 - posted by \x02{}\x02 {} ago - {} upvotes, {} downvotes - {}'.format( + return u'\x02{}\x02 - posted by \x02{}\x02 {} ago - {} upvotes, {} downvotes - {}'.format( title, author, timeago, upvotes, downvotes, comments)