diff --git a/bot/tell.py b/bot/tell.py index 31d777a..bdfb104 100644 --- a/bot/tell.py +++ b/bot/tell.py @@ -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] diff --git a/bot/utils.py b/bot/utils.py index a3b3de9..df8d2d2 100644 --- a/bot/utils.py +++ b/bot/utils.py @@ -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