add wait_for() hostmask matching functionality

This commit is contained in:
jesopo 2020-04-20 16:53:14 +01:00
parent 079460dd35
commit a79958affd
2 changed files with 29 additions and 5 deletions

View file

@ -3,7 +3,7 @@ from typing import Awaitable, Iterable, List, Optional, Set, Tuple
from enum import IntEnum
from ircstates import Server, Emit
from irctokens import Line
from irctokens import Line, Hostmask
from .params import ConnectionParams, SASLParams, STSPolicy
@ -61,6 +61,9 @@ class IMatchResponse(object):
class IMatchResponseParam(object):
def match(self, server: "IServer", arg: str) -> bool:
pass
class IMatchResponseHostmask(object):
def match(self, server: "IServer", hostmask: Hostmask) -> bool:
pass
class IServer(Server):
bot: "IBot"