add wait_for() hostmask matching functionality
This commit is contained in:
parent
079460dd35
commit
a79958affd
2 changed files with 29 additions and 5 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue