From 0b0d10fc82e0764899e5015dd558939761bab595 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 28 Nov 2003 19:04:24 +0000 Subject: [PATCH] Removed periods at the end of the reason. --- plugins/FunDB.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/FunDB.py b/plugins/FunDB.py index b9e2d1355..4de7dff5c 100755 --- a/plugins/FunDB.py +++ b/plugins/FunDB.py @@ -436,8 +436,9 @@ class FunDB(callbacks.Privmsg, plugins.Configurable): reason = re.sub(r'\bmy\b', '%s\'s' % msg.nick, reason) lartee = nick s = lart.replace('$who', lartee) - if len(reason) > 0: + if reason: s = '%s for %s' % (s, reason) + s = s.rstrip('.') irc.reply(msg, self._formatResponse(s, id), action=True) def praise(self, irc, msg, args): @@ -484,8 +485,9 @@ class FunDB(callbacks.Privmsg, plugins.Configurable): reason = re.sub(r'\bmy\b', '%s\'s' % msg.nick, reason) praisee = nick s = praise.replace('$who', praisee) - if len(reason) > 0: + if reason: s = '%s for %s' % (s, reason) + s = s.rstrip('.') irc.reply(msg, self._formatResponse(s, id), action=True) def addword(self, irc, msg, args):