minor bugfixes

This commit is contained in:
jkhsjdhjs 2020-05-01 23:20:37 +00:00
parent 2d41d0c0bb
commit 98646f3226
2 changed files with 3 additions and 3 deletions

View File

@ -70,8 +70,8 @@ class Tell(DatabasePlugin):
for tell in self.tell_queue[nick]:
self.bot.privmsg(nick, '\x02[Tell]\x02 Message from {nick} at {time}: {message}'.format(
nick=tell[0],
time=tell[1], # TODO: format time
message=tell[2],
time=tell[2], # TODO: format time
message=tell[1],
))
del self.tell_queue[nick]

View File

@ -19,7 +19,7 @@ def is_int(val: str) -> bool:
def parse_int(val: str, select: bool = True) -> Tuple[int, str]:
try:
val = int(val)
if val is not 0:
if val != 0:
if val < 1:
order = 'DESC'
val *= -1