Browse Source

Revert "Add use_ssl option"

This broke the OpenDev connection, we should figure out why

This reverts commit 4c31332e23.

Change-Id: I944b1a5e8dcb451374ad07c2f34ba873cc9b11ca
changes/94/817694/1
Ian Wienand 3 months ago
parent
commit
067bc37ec0
  1. 37
      statusbot/bot.py

37
statusbot/bot.py

@ -354,7 +354,7 @@ class AlertFile(UpdateInterface):
self.write(None)
class BaseStatusBot(irc.bot.SingleServerIRCBot):
class BaseStatusBot(SSL, irc.bot.SingleServerIRCBot):
log = logging.getLogger("statusbot.bot")
def on_pubmsg(self, c, e):
@ -556,29 +556,20 @@ def _main(configpath):
else:
use_sasl = False
if use_sasl:
base = SASLStatusBot
bot = SASLStatusBot(channels, nicks, publishers, successlog,
thankslog,
config.get('ircbot', 'nick'),
config.get('ircbot', 'pass'),
config.get('ircbot', 'server'),
config.getint('ircbot', 'port'))
else:
base = NoSASLStatusBot
if config.has_option('ircbot', 'use_ssl'):
use_ssl = config.getboolean('ircbot', 'use_ssl')
else:
use_ssl = False
# SSL is set through class inheritance.
if use_ssl:
class Bot(base, SSL):
pass
else:
class Bot(base):
pass
Bot(channels, nicks, publishers, successlog,
thankslog,
config.get('ircbot', 'nick'),
config.get('ircbot', 'pass'),
config.get('ircbot', 'server'),
config.getint('ircbot', 'port')).start()
bot = NoSASLStatusBot(channels, nicks, publishers, successlog,
thankslog,
config.get('ircbot', 'nick'),
config.get('ircbot', 'pass'),
config.get('ircbot', 'server'),
config.getint('ircbot', 'port'))
bot.start()
def main():

Loading…
Cancel
Save