From b05056ff2885b9138654dc69dd54e86d8619ebf6 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Mon, 7 Oct 2013 01:12:12 +1300 Subject: [PATCH 1/3] Update utility.py --- plugins/utility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/utility.py b/plugins/utility.py index ae0e4d1..342cd44 100644 --- a/plugins/utility.py +++ b/plugins/utility.py @@ -114,7 +114,7 @@ def length(inp): @hook.command def reverse(inp): """Enter a string and the bot will reverse it and print it out.""" - return "You say %s, I say %s" % (inp, inp[::-1]) + return inp[::-1] # hashing From 853b4b7db80bdf403fce9a73e96847fafa365220 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Mon, 7 Oct 2013 01:20:36 +1300 Subject: [PATCH 2/3] helptext --- plugins/utility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/utility.py b/plugins/utility.py index 342cd44..947db15 100644 --- a/plugins/utility.py +++ b/plugins/utility.py @@ -113,7 +113,7 @@ def length(inp): @hook.command def reverse(inp): - """Enter a string and the bot will reverse it and print it out.""" + """reverse -- reverses .""" return inp[::-1] # hashing From 05782766e9e61dacbe0874735bff4b734552a265 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Mon, 7 Oct 2013 21:11:01 +1300 Subject: [PATCH 3/3] fixed unicode --- core/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/main.py b/core/main.py index 0ff53e4..0054b0a 100755 --- a/core/main.py +++ b/core/main.py @@ -22,7 +22,7 @@ class Input(dict): if target == nick: conn.msg(target, message) else: - conn.msg(target, "({}) {}".format(nick, message)) + conn.msg(target, u"({}) {}".format(nick, message)) def action(message, target=chan): """sends an action to the current channel/user or a specific channel/user"""