From 57b0c23a79abe4be64243b01a1c3a82c1194eaef Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 23 Aug 2003 11:34:13 +0000 Subject: [PATCH] Added strlen command. --- plugins/Utilities.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/Utilities.py b/plugins/Utilities.py index 0bc081300..f0dee5a67 100644 --- a/plugins/Utilities.py +++ b/plugins/Utilities.py @@ -87,6 +87,12 @@ class Utilities(callbacks.Privmsg): """ 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): """