2016-04-10 20:24:58 -07:00
|
|
|
"""
|
2017-03-25 12:06:44 -07:00
|
|
|
nefarious.py: Migration stub to the new P10 protocol module.
|
2016-04-10 20:24:58 -07:00
|
|
|
"""
|
|
|
|
|
2016-06-20 18:18:54 -07:00
|
|
|
from pylinkirc.log import log
|
2020-06-19 00:47:20 +02:00
|
|
|
from pylinkirc.protocols.p10 import P10Protocol
|
|
|
|
|
|
|
|
__all__ = ['NefariousProtocol']
|
2016-04-10 20:24:58 -07:00
|
|
|
|
2019-07-14 15:12:29 -07:00
|
|
|
|
2017-03-25 12:06:44 -07:00
|
|
|
class NefariousProtocol(P10Protocol):
|
2017-06-25 01:12:22 -07:00
|
|
|
def __init__(self, *args, **kwargs):
|
|
|
|
super().__init__(*args, **kwargs)
|
2017-03-25 12:06:44 -07:00
|
|
|
log.warning("(%s) protocols/nefarious.py has been renamed to protocols/p10.py, which "
|
|
|
|
"now also supports other IRCu variants. Please update your configuration, "
|
|
|
|
"as this migration stub will be removed in a future version.",
|
2017-06-25 02:03:12 -07:00
|
|
|
self.name)
|
2016-04-10 20:24:58 -07:00
|
|
|
|
2017-03-25 12:06:44 -07:00
|
|
|
Class = NefariousProtocol
|