Added strsplit command

This commit is contained in:
Jeremy Fincher 2003-03-26 10:38:46 +00:00
parent 1da16fc9e7
commit 4679d9b184
1 changed files with 7 additions and 0 deletions

View File

@ -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: