aboutsummaryrefslogtreecommitdiffstats
path: root/git/wipe_irssi_passwords
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-06-18 22:22:16 +0000
committerterminaldweller <thabogre@gmail.com>2021-06-18 22:22:16 +0000
commitb1b8fb265ad4c46b458e03240ab3c942ae474d63 (patch)
tree6d221038391b44cd5a50ca5a0282233a3f106a76 /git/wipe_irssi_passwords
parenttoo much to talk about... (diff)
downloadscripts-b1b8fb265ad4c46b458e03240ab3c942ae474d63.tar.gz
scripts-b1b8fb265ad4c46b458e03240ab3c942ae474d63.zip
so many things
Diffstat (limited to 'git/wipe_irssi_passwords')
-rwxr-xr-xgit/wipe_irssi_passwords16
1 files changed, 16 insertions, 0 deletions
diff --git a/git/wipe_irssi_passwords b/git/wipe_irssi_passwords
new file mode 100755
index 0000000..26e9d58
--- /dev/null
+++ b/git/wipe_irssi_passwords
@@ -0,0 +1,16 @@
+#!/usr/bin/env python3
+# _*_ coding=utf-8 _*_
+
+import re
+
+
+def main():
+ with open("./config", "r") as config_file:
+ lines = config_file.readlines()
+ for line in lines:
+ print(re.sub("password\\s*=\\s*\"(.*)\"",
+ "password=\"\"", line), end="")
+
+
+if __name__ == "__main__":
+ main()