From 44377a58e960d2868cf04171cab87bb695972615 Mon Sep 17 00:00:00 2001 From: Julian Marcos Date: Fri, 1 Sep 2023 17:19:52 +0000 Subject: [PATCH] Timeskip do not write to file This commit makes &tsk not write to a file. This commit also changes tilde.py's permission to not be +x, as that's not required for python. --- plugins/tilde.py | 4 ---- 1 file changed, 4 deletions(-) mode change 100755 => 100644 plugins/tilde.py diff --git a/plugins/tilde.py b/plugins/tilde.py old mode 100755 new mode 100644 index eea1aed..b1f31b1 --- a/plugins/tilde.py +++ b/plugins/tilde.py @@ -43,10 +43,6 @@ def timeskip_plugin(msg): return if msg.arg: util.tilde.TIMESKIP = (msg.arg.lower() == 'true' or msg.arg.lower() == 't') - with open(util.tilde.TIMESKIP_FILE, "r+") as timeskipfile: - timeskipfile.seek(0) - timeskipfile.truncate() - timeskipfile.write(str(util.tilde.TIMESKIP)) return pinhook.plugin.message("TIMESKIP set to '{}'".format(util.tilde.TIMESKIP))