3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

classes: remove irc.botdata (#422)

This commit is contained in:
James Lu 2018-06-11 23:43:57 -07:00
parent 2e3317ce07
commit 3bea214cb0
2 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ class PyLinkNetworkCore(structures.CamelCaseToSnakeCase):
self.conf = conf.conf self.conf = conf.conf
self.sid = None self.sid = None
self.serverdata = conf.conf['servers'][netname] self.serverdata = conf.conf['servers'][netname]
self.botdata = conf.conf['pylink']
self.protoname = self.__class__.__module__.split('.')[-1] # Remove leading pylinkirc.protocols. self.protoname = self.__class__.__module__.split('.')[-1] # Remove leading pylinkirc.protocols.
self.proto = self.irc = self # Backwards compat self.proto = self.irc = self # Backwards compat

View File

@ -115,7 +115,7 @@ def rehash():
# XXX: we should really just add abstraction to Irc to update config settings... # XXX: we should really just add abstraction to Irc to update config settings...
ircobj.conf = new_conf ircobj.conf = new_conf
ircobj.serverdata = new_conf['servers'][network] ircobj.serverdata = new_conf['servers'][network]
ircobj.botdata = new_conf['bot']
ircobj.autoconnect_active_multiplier = 1 ircobj.autoconnect_active_multiplier = 1
# Clear the IRC object's channel loggers and replace them with # Clear the IRC object's channel loggers and replace them with