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
parent
5caff13c38
commit
44377a58e9
|
@ -43,10 +43,6 @@ def timeskip_plugin(msg):
|
||||||
return
|
return
|
||||||
if msg.arg:
|
if msg.arg:
|
||||||
util.tilde.TIMESKIP = (msg.arg.lower() == 'true' or msg.arg.lower() == 't')
|
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))
|
return pinhook.plugin.message("TIMESKIP set to '{}'".format(util.tilde.TIMESKIP))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue