From 2028075d2f40f67928c141708611fc71d11589e8 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Wed, 26 Feb 2014 22:22:10 +1300 Subject: [PATCH] Few small tweaks and fixes --- plugins/admin.py | 12 ++++++------ plugins/update.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/admin.py b/plugins/admin.py index b90d4aa..dde067e 100644 --- a/plugins/admin.py +++ b/plugins/admin.py @@ -200,11 +200,11 @@ def say(inp, conn=None, chan=None): the command was used in.""" inp = inp.split(" ") if inp[0][0] == "#": - message = " ".join(inp[1:]) - out = "PRIVMSG {} :{}".format(inp[0], message) + message = u" ".join(inp[1:]) + out = u"PRIVMSG {} :{}".format(inp[0], message) else: - message = " ".join(inp[0:]) - out = "PRIVMSG {} :{}".format(chan, message) + message = u" ".join(inp[0:]) + out = u"PRIVMSG {} :{}".format(chan, message) conn.send(out) @@ -220,11 +220,11 @@ def me(inp, conn=None, chan=None): for x in inp[1:]: message = message + x + " " message = message[:-1] - out = "PRIVMSG {} :\x01ACTION {}\x01".format(inp[0], message) + out = u"PRIVMSG {} :\x01ACTION {}\x01".format(inp[0], message) else: message = "" for x in inp[0:]: message = message + x + " " message = message[:-1] - out = "PRIVMSG {} :\x01ACTION {}\x01".format(chan, message) + out = u"PRIVMSG {} :\x01ACTION {}\x01".format(chan, message) conn.send(out) diff --git a/plugins/update.py b/plugins/update.py index 13d9bed..d7a4e7d 100644 --- a/plugins/update.py +++ b/plugins/update.py @@ -34,7 +34,7 @@ def version(inp, bot=None): in_sync = False # output - return "Local {} is at commit {}, remote {} is at commit {}." \ + return "Local \x02{}\x02 is at commit \x02{}\x02, remote \x02{}\x02 is at commit \x02{}\x02." \ " You {} running the latest version.".format(head, current_commit.name_rev[:7], origin_head, remote_commit.name_rev[:7], "are" if in_sync else "are not")