From c9c77f92c21afec280a1e4ad9c66590ebfa498e7 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 25 Aug 2003 06:24:42 +0000 Subject: [PATCH] Fixed mime/unmime and docstring. --- plugins/Moobot.py | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/plugins/Moobot.py b/plugins/Moobot.py index 84e41dcba..8661746df 100644 --- a/plugins/Moobot.py +++ b/plugins/Moobot.py @@ -35,19 +35,6 @@ """ Provides several commands that shamelessly imitate Moobot, if only to show developers coming from Moobot how to code to Supybot. - -Commands include: - cool - hi - morse - unmorse - ditdaw - dawdit - reverse - mime - unmime - stack - give """ from baseplugin import * @@ -161,11 +148,7 @@ class Moobot(callbacks.Privmsg): """ text = privmsgs.getArgs(args) s = base64.encodestring(text).strip() - if ircutils.isValidArgument(s): - irc.reply(msg, s) - else: - irc.error(msg, 'Base64 requires a newline in that string. '\ - 'Try a smaller string.') + irc.reply(msg, s) def unmime(self, irc, msg, args): """ @@ -175,10 +158,7 @@ class Moobot(callbacks.Privmsg): """ text = privmsgs.getArgs(args) s = base64.decodestring(text) - if ircutils.isValidArgument(s): - irc.reply(msg, s) - else: - irc.error(msg, 'I can\'t send \\n, \\r, or \\0.') + irc.reply(msg, s) _stack = [] def stack(self, irc, msg, args):