mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-10-30 17:43:44 +00:00
Write file
This commit is contained in:
1 parent
866a54437f
commit
0e268913f2
1 file changed
+2
-2
+2
-2
@@ -50,14 +50,14 @@ def muteConversation(baseDir: str, nickname: str, domain: str,
|
|||||||
conversationId: str) -> None:
|
conversationId: str) -> None:
|
||||||
"""Mutes the given conversation
|
"""Mutes the given conversation
|
||||||
"""
|
"""
|
||||||
conversationDir = acctDir(baseDir, nickname, domain) + '/conversation'
|
conversationDir = acctDir(baseDir, nickname, domain) + '/conversation'
|
||||||
conversationFilename = \
|
conversationFilename = \
|
||||||
conversationDir + '/' + conversationId.replace('/', '#')
|
conversationDir + '/' + conversationId.replace('/', '#')
|
||||||
if not os.path.isfile(conversationFilename):
|
if not os.path.isfile(conversationFilename):
|
||||||
return
|
return
|
||||||
if os.path.isfile(conversationFilename + '.muted'):
|
if os.path.isfile(conversationFilename + '.muted'):
|
||||||
return
|
return
|
||||||
with open(conversationFilename + '.muted') as fp:
|
with open(conversationFilename + '.muted', 'w+') as fp:
|
||||||
fp.write('\n')
|
fp.write('\n')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user