diff --git a/tts.exe b/tts.exe index 75bb731..e76a2d4 100644 Binary files a/tts.exe and b/tts.exe differ diff --git a/tts.py b/tts.py index 53a3edb..51a119e 100644 --- a/tts.py +++ b/tts.py @@ -262,7 +262,7 @@ class IRC: if msg.startswith('!smartquote') or msg.startswith('!sq'): logging.debug("!smartquote command detected") - self.__quotecmd(tags, msg) + self.__quotecmd(msg) return def __priviledged_commands(self, message, tags): @@ -693,7 +693,7 @@ class IRC: user = f"@{user}" self.sendmsg(CONF['IRC_CHANNEL'], user, CONF['MESSAGE']['WIKI_NO_RESULT']) - def __quotecmd(self, tags, msg = False): + def __quotecmd(self, msg = False): """ !smartquote command Gets a line from quotes.txt. If a number if given as msg @@ -706,7 +706,6 @@ class IRC: """ try: - user = tags['user'] query = msg.replace('!smartquote', '').strip() query = msg.replace('!sq', '').strip() @@ -1609,12 +1608,6 @@ if __name__ == "__main__": format='%(asctime)s %(module)s %(threadName)s %(levelname)s: %(message)s' ) - file_handler = logging.FileHandler('tts.log') - file_handler.setLevel(logging.ERROR) - file_handler.setFormatter(formatter) - - logger.addHandler(file_handler) - sys.tracebacklimit = 3 VERSION = "1.7.1"