From 3bea214cb09be4f1840e0adf31d570e0297e7a43 Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 11 Jun 2018 23:43:57 -0700 Subject: [PATCH] classes: remove irc.botdata (#422) --- classes.py | 2 +- coremods/control.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/classes.py b/classes.py index 0074792..a779bcb 100644 --- a/classes.py +++ b/classes.py @@ -231,7 +231,7 @@ class PyLinkNetworkCore(structures.CamelCaseToSnakeCase): self.conf = conf.conf self.sid = None self.serverdata = conf.conf['servers'][netname] - self.botdata = conf.conf['pylink'] + self.protoname = self.__class__.__module__.split('.')[-1] # Remove leading pylinkirc.protocols. self.proto = self.irc = self # Backwards compat diff --git a/coremods/control.py b/coremods/control.py index ab463f8..3139a34 100644 --- a/coremods/control.py +++ b/coremods/control.py @@ -115,7 +115,7 @@ def rehash(): # XXX: we should really just add abstraction to Irc to update config settings... ircobj.conf = new_conf ircobj.serverdata = new_conf['servers'][network] - ircobj.botdata = new_conf['bot'] + ircobj.autoconnect_active_multiplier = 1 # Clear the IRC object's channel loggers and replace them with