mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 06:04:21 +01:00
Fixed strjoin and added strconcat
This commit is contained in:
parent
4670e6df55
commit
d2f56143dc
@ -37,8 +37,12 @@ import callbacks
|
||||
class Utils(callbacks.Privmsg):
|
||||
def strjoin(self, irc, msg, args):
|
||||
"<separator> <strings to join>"
|
||||
(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):
|
||||
"<string 1> <string 2>"
|
||||
(first, second) = privmsgs.getArgs(args, needed=2)
|
||||
irc.reply(msg, first+second)
|
||||
|
||||
Class = Utils
|
||||
|
Loading…
Reference in New Issue
Block a user