An older version of the previous tell plugin patch was originally pushed. This is the correct version.

This commit is contained in:
Hamled 2009-10-19 13:28:14 -07:00
parent 07e6316698
commit 76826e2fd4
1 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ def tellinput(bot, input):
reply = "%(teller)s said %(reltime)s ago: %(quote)s" %
{"teller": tell[1], "quote": tell[2], "reltime": reltime}
if more:
reply += " (+%(more)d more, to view say .showtells.)" % more
reply += " (+%(more)d more, to view say .showtells)" % {"more": more}
bot.reply(reply)
command = "delete from tell where id = ?"
@ -61,7 +61,7 @@ def showtells(bot, input):
if(len(tells) > 0):
for tell in tells:
reltime = timesince.timesince(datetime.fromtimestamp(tell[3]))
bot.irc.msg(input.nick, '%(teller)s said %(reltime)s ago: %(quote)s' %
bot.msg(input.nick, '%(teller)s said %(reltime)s ago: %(quote)s' %
{'teller': tell[1], 'quote': tell[2], 'reltime': reltime})
command = "delete from tell where id = ?"
@ -69,7 +69,7 @@ def showtells(bot, input):
conn.commit()
else:
bot.irc.msg(input.nick, "You have no pending tells.")
bot.msg(input.nick, "You have no pending tells.")
conn.close()