Skip to content

Commit

Permalink
Only import irc if selected in config
Browse files Browse the repository at this point in the history
  • Loading branch information
hiviah committed May 27, 2021
1 parent ef0c4d3 commit 8a6f749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brmdoor_nfc_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import time
import ConfigParser
import threading
import irc.client
import ssl
import Queue
import json
Expand Down Expand Up @@ -60,6 +59,7 @@ def __init__(self, filename):
self.unlocker = self.config.get("brmdoor", "unlocker")
self.useIRC = self.config.getboolean("irc", "enabled")
if self.useIRC:
import irc.client
self.ircServer = self.config.get("irc", "server")
self.ircPort = self.config.getint("irc", "port")
self.ircNick = self.config.get("irc", "nick")
Expand Down

0 comments on commit 8a6f749

Please sign in to comment.