mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Added repr command and fixed strsplit.
This commit is contained in:
parent
25d90d6e43
commit
f67fa45395
@ -48,8 +48,17 @@ class Utilities(callbacks.Privmsg):
|
||||
def strjoin(self, irc, msg, args):
|
||||
"<separator> <strings to join>"
|
||||
sep = args.pop(0)
|
||||
args = flatten(map(callbacks.tokenize, args))
|
||||
irc.reply(msg, sep.join(args))
|
||||
|
||||
def repr(self, irc, msg, args):
|
||||
"""<text>
|
||||
|
||||
Returns the text surrounded by double quotes.
|
||||
"""
|
||||
text = privmsgs.getArgs(args)
|
||||
irc.reply(msg, utils.dqrepr(text))
|
||||
|
||||
def strconcat(self, irc, msg, args):
|
||||
"<string 1> <string 2>"
|
||||
(first, second) = privmsgs.getArgs(args, needed=2)
|
||||
|
Loading…
Reference in New Issue
Block a user