Remove legacy and never used response.Hook
This commit is contained in:
parent
4b9a6305d4
commit
a8fe4c5159
@ -76,9 +76,6 @@ class MessageConsumer:
|
|||||||
if context.treat_post(res):
|
if context.treat_post(res):
|
||||||
res.server.send_response(res, self.data)
|
res.server.send_response(res, self.data)
|
||||||
|
|
||||||
elif isinstance(res, response.Hook):
|
|
||||||
context.hooks.add_hook(res.type, res.hook, res.src)
|
|
||||||
|
|
||||||
elif res is not None:
|
elif res is not None:
|
||||||
logger.error("Unrecognized response type: %s", res)
|
logger.error("Unrecognized response type: %s", res)
|
||||||
|
|
||||||
|
10
response.py
10
response.py
@ -164,13 +164,3 @@ class Response:
|
|||||||
self.elt += len(w) + 1
|
self.elt += len(w) + 1
|
||||||
self.pop()
|
self.pop()
|
||||||
return msg
|
return msg
|
||||||
|
|
||||||
import hooks
|
|
||||||
class Hook:
|
|
||||||
def __init__(self, TYPE, call, name=None, data=None, regexp=None,
|
|
||||||
channels=list(), server=None, end=None, call_end=None,
|
|
||||||
SRC=None):
|
|
||||||
self.hook = hooks.Hook(call, name, data, regexp, channels,
|
|
||||||
server, end, call_end)
|
|
||||||
self.type = TYPE
|
|
||||||
self.src = SRC
|
|
||||||
|
Loading…
Reference in New Issue
Block a user