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.
master
jmjl 2023-09-01 17:19:52 +00:00
parent 5caff13c38
commit 44377a58e9
1 changed files with 0 additions and 4 deletions

4
plugins/tilde.py 100755 → 100644
View File

@ -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))