From af9f024d63fecf1a0b0024bffdafaca8149bbee6 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Tue, 1 Oct 2013 04:08:13 +1300 Subject: [PATCH] no message --- plugins/munge.py | 7 ------- plugins/{qr.py => qrcode.py} | 0 plugins/utility.py | 10 +++++++++- 3 files changed, 9 insertions(+), 8 deletions(-) delete mode 100755 plugins/munge.py rename plugins/{qr.py => qrcode.py} (100%) diff --git a/plugins/munge.py b/plugins/munge.py deleted file mode 100755 index 2bc3dc6..0000000 --- a/plugins/munge.py +++ /dev/null @@ -1,7 +0,0 @@ -from util import hook, text - - -@hook.command -def munge(inp): - """munge -- Munges up .""" - return text.munge(inp) diff --git a/plugins/qr.py b/plugins/qrcode.py similarity index 100% rename from plugins/qr.py rename to plugins/qrcode.py diff --git a/plugins/utility.py b/plugins/utility.py index ad9e6df..bf57d38 100644 --- a/plugins/utility.py +++ b/plugins/utility.py @@ -1,4 +1,4 @@ -from util import hook +from util import hook, text import hashlib # basic text tools @@ -61,3 +61,11 @@ def hash(inp): """hash -- Returns hashes of .""" return ', '.join(x + ": " + getattr(hashlib, x)(inp).hexdigest() for x in ['md5', 'sha1', 'sha256']) + +# novelty + +@hook.command +def munge(inp): + """munge -- Munges up .""" + return text.munge(inp) +