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)