From 208d6f21fb1da65aa6ac2598ba555d4ef80627ca Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 16 Sep 2018 18:19:37 +0200 Subject: add nickserv password identification --- reaktor/config.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'reaktor/config.py') 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 -- cgit v1.2.3