aboutsummaryrefslogtreecommitdiffstats
path: root/reaktor/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'reaktor/config.py')
-rw-r--r--reaktor/config.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/reaktor/config.py b/reaktor/config.py
index f5e8e06..dbe5ec3 100644
--- a/reaktor/config.py
+++ b/reaktor/config.py
@@ -24,6 +24,12 @@ irc_port = int(env.get('REAKTOR_PORT', 6667))
# TODO: do not implement functionality in the config :\
workdir = env.get('REAKTOR_STATEDIR', expanduser('~') + '/state')
irc_channels = env.get('REAKTOR_CHANNELS', '#krebs').split(',')
+try:
+ nickserv_password = open(
+ env.get('REAKTOR_NICKSERV_PASSWORD')
+ ).read().strip()
+except: # noqa: E722
+ nickserv_password = None
# static config
# if you want to change this part you have to copy the config