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

Irc: deprecate the botdata field as well (#273)

This commit is contained in:
James Lu 2017-03-05 00:14:43 -08:00
parent e8bf1d08bc
commit 9a9e0b2c20

View File

@ -42,7 +42,10 @@ class Irc(utils.DeprecatedAttributesObject):
(a string), the name of the protocol module to use for this connection,
and a configuration object.
"""
self.deprecated_attributes = {'conf': 'Deprecated since 1.2; consider switching to conf.conf'}
self.deprecated_attributes = {
'conf': 'Deprecated since 1.2; consider switching to conf.conf',
'botdata': "Deprecated since 1.2; consider switching to conf.conf['bot']",
}
self.loghandlers = []
self.name = netname