From b4f9cc02b9d226a84dd16cd6574d03143ac5dffd Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 21 Apr 2020 21:16:18 +0100 Subject: [PATCH] `source` should be on Response as well as Responses --- ircrobots/matching.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ircrobots/matching.py b/ircrobots/matching.py index e977606..ce77d37 100644 --- a/ircrobots/matching.py +++ b/ircrobots/matching.py @@ -40,8 +40,9 @@ class Responses(IMatchResponse): class Response(Responses): def __init__(self, command: str, - params: List[TYPE_PARAM]=[]): - super().__init__([command], params) + params: List[TYPE_PARAM]=[], + source: Optional[IMatchResponseHostmask]=None): + super().__init__([command], params, source=source) def __repr__(self) -> str: return f"Response({self._commands[0]}: {self._params!r})"