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:
parent
2e3317ce07
commit
3bea214cb0
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user