From f67fa453957ec28b2108fadd2ff4a29166719831 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 15 Apr 2003 15:59:40 +0000 Subject: [PATCH] Added repr command and fixed strsplit. --- plugins/Utilities.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/Utilities.py b/plugins/Utilities.py index 8b6d80d5c..dc7e53161 100644 --- a/plugins/Utilities.py +++ b/plugins/Utilities.py @@ -48,8 +48,17 @@ class Utilities(callbacks.Privmsg): def strjoin(self, irc, msg, args): " " sep = args.pop(0) + args = flatten(map(callbacks.tokenize, args)) irc.reply(msg, sep.join(args)) + def repr(self, irc, msg, args): + """ + + Returns the text surrounded by double quotes. + """ + text = privmsgs.getArgs(args) + irc.reply(msg, utils.dqrepr(text)) + def strconcat(self, irc, msg, args): " " (first, second) = privmsgs.getArgs(args, needed=2)