mirror of https://github.com/Mikaela/Limnoria.git
Removed periods at the end of the reason.
This commit is contained in:
parent
a40742edb7
commit
0b0d10fc82
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue