mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
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)
|
reason = re.sub(r'\bmy\b', '%s\'s' % msg.nick, reason)
|
||||||
lartee = nick
|
lartee = nick
|
||||||
s = lart.replace('$who', lartee)
|
s = lart.replace('$who', lartee)
|
||||||
if len(reason) > 0:
|
if reason:
|
||||||
s = '%s for %s' % (s, reason)
|
s = '%s for %s' % (s, reason)
|
||||||
|
s = s.rstrip('.')
|
||||||
irc.reply(msg, self._formatResponse(s, id), action=True)
|
irc.reply(msg, self._formatResponse(s, id), action=True)
|
||||||
|
|
||||||
def praise(self, irc, msg, args):
|
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)
|
reason = re.sub(r'\bmy\b', '%s\'s' % msg.nick, reason)
|
||||||
praisee = nick
|
praisee = nick
|
||||||
s = praise.replace('$who', praisee)
|
s = praise.replace('$who', praisee)
|
||||||
if len(reason) > 0:
|
if reason:
|
||||||
s = '%s for %s' % (s, reason)
|
s = '%s for %s' % (s, reason)
|
||||||
|
s = s.rstrip('.')
|
||||||
irc.reply(msg, self._formatResponse(s, id), action=True)
|
irc.reply(msg, self._formatResponse(s, id), action=True)
|
||||||
|
|
||||||
def addword(self, irc, msg, args):
|
def addword(self, irc, msg, args):
|
||||||
|
Loading…
Reference in New Issue
Block a user