mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 22:24:20 +01:00
Added strlen command.
This commit is contained in:
parent
68b9b5f378
commit
57b0c23a79
@ -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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user