mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Added strsplit command
This commit is contained in:
parent
1da16fc9e7
commit
4679d9b184
@ -53,5 +53,12 @@ class Utils(callbacks.Privmsg):
|
||||
(first, second) = privmsgs.getArgs(args, needed=2)
|
||||
irc.reply(msg, first+second)
|
||||
|
||||
def strsplit(self, irc, msg, args):
|
||||
"<separator> <text"
|
||||
(sep, text) = privmsgs.getArgs(args, needed=2)
|
||||
if sep == '':
|
||||
sep = None
|
||||
irc.reply(msg, text.split(sep))
|
||||
|
||||
Class = Utils
|
||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||
|
Loading…
Reference in New Issue
Block a user