2016-04-11 05:24:58 +02:00
|
|
|
"""
|
2017-03-25 20:06:44 +01:00
|
|
|
nefarious.py: Migration stub to the new P10 protocol module.
|
2016-04-11 05:24:58 +02:00
|
|
|
"""
|
|
|
|
|
2016-06-21 03:18:54 +02:00
|
|
|
from pylinkirc.log import log
|
2017-03-25 20:06:44 +01:00
|
|
|
from pylinkirc.protocols.p10 import *
|
2016-04-11 05:24:58 +02:00
|
|
|
|
2019-07-15 00:12:29 +02:00
|
|
|
|
2017-03-25 20:06:44 +01:00
|
|
|
class NefariousProtocol(P10Protocol):
|
2017-06-25 10:12:22 +02:00
|
|
|
def __init__(self, *args, **kwargs):
|
|
|
|
super().__init__(*args, **kwargs)
|
2017-03-25 20:06:44 +01: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 11:03:12 +02:00
|
|
|
self.name)
|
2016-04-11 05:24:58 +02:00
|
|
|
|
2017-03-25 20:06:44 +01:00
|
|
|
Class = NefariousProtocol
|