diff options
author | lassulus <lassulus@lassul.us> | 2018-09-16 18:19:37 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2018-09-16 18:19:37 +0200 |
commit | 208d6f21fb1da65aa6ac2598ba555d4ef80627ca (patch) | |
tree | 02ef01ea019e5091dc092fdf36ce828c7e6d6b3e /reaktor/config.py | |
parent | 04bc3ffcf11a672f13c0c8f502d664e16c2a085c (diff) |
add nickserv password identification
Diffstat (limited to 'reaktor/config.py')
-rw-r--r-- | reaktor/config.py | 6 |
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 |