Added strlen command.

This commit is contained in:
Jeremy Fincher 2003-08-23 11:34:13 +00:00
parent 68b9b5f378
commit 57b0c23a79

View File

@ -87,6 +87,12 @@ class Utilities(callbacks.Privmsg):
""" """
irc.reply(msg, privmsgs.getArgs(args).lower()) irc.reply(msg, privmsgs.getArgs(args).lower())
def strlen(self, irc, msg, args):
total = 0
for arg in args:
total += len(arg)
irc.reply(msg, str(total))
def repr(self, irc, msg, args): def repr(self, irc, msg, args):
"""<text> """<text>