From d2f56143dceca0a18341dd0a6bde0eb41b9ee85b Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 15 Mar 2003 00:55:43 +0000 Subject: [PATCH] Fixed strjoin and added strconcat --- plugins/Utils.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/Utils.py b/plugins/Utils.py index a5139c5de..e215a04da 100644 --- a/plugins/Utils.py +++ b/plugins/Utils.py @@ -37,8 +37,12 @@ import callbacks class Utils(callbacks.Privmsg): def strjoin(self, irc, msg, args): " " - (sep, text) = privmsgs.getArgs(args, needed=2) - irc.reply(msg, sep.join(text.split())) + sep = args.pop(0) + irc.reply(msg, sep.join(args)) + def strconcat(self, irc, msg, args): + " " + (first, second) = privmsgs.getArgs(args, needed=2) + irc.reply(msg, first+second) Class = Utils