From: Christian Heller <c.heller@plomlompom.de>
Date: Sun, 11 Oct 2015 18:35:08 +0000 (+0200)
Subject: On server re-start, send reminder mail to re-identify via NickServ.
X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7B%20web_path%20%7D%7D/error?a=commitdiff_plain;h=822fe8e489823bb5c1e6a8a90ebda2ba7e35cf9f;p=config

On server re-start, send reminder mail to re-identify via NickServ.
---

diff --git a/bin/screen-irssi.sh b/bin/screen-irssi.sh
index 4f11aa2..1e61f46 100755
--- a/bin/screen-irssi.sh
+++ b/bin/screen-irssi.sh
@@ -11,3 +11,6 @@ echo 1
 # Start irssi in shell in screen.
 screen -d -m -S irssi
 screen -S irssi -X stuff 'irssi\n'
+
+# Send mail to remind user to re-identify to NickServ.
+~/config/bin/simplemail.sh ~/config/mails/irssi_identify_reminder
diff --git a/mails/irssi_identify_reminder b/mails/irssi_identify_reminder
new file mode 100644
index 0000000..739ceec
--- /dev/null
+++ b/mails/irssi_identify_reminder
@@ -0,0 +1,4 @@
+irssi restarted, re-identify!
+
+Your irssi was restarted, so don't forget to re-identify to Nickserv via
+"/msg nickserv identify [password]".