aboutsummaryrefslogtreecommitdiff
path: root/src/utils/__init__.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-16 20:48:31 +0100
committerGravatar jesopo2019-06-16 20:48:31 +0100
commitced59a0f74caa575a12c6e72843d497d1f8c092e (patch)
treedaeda0274452074882c29c0919596237edd20cfc /src/utils/__init__.py
parentSupport 'channel-access' check request referencing current channel (diff)
signature
Allow channel-access and channel-mode check for channels people are not in
Diffstat (limited to 'src/utils/__init__.py')
-rw-r--r--src/utils/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/__init__.py b/src/utils/__init__.py
index 99d289ac..4e947c4b 100644
--- a/src/utils/__init__.py
+++ b/src/utils/__init__.py
@@ -193,6 +193,8 @@ class MultiCheck(object):
return self
def requests(self):
return self._requests[:]
+ def __or__(self, other: "Check"):
+ return MultiCheck(self._requests+[(other.request, other.args)])
class Check(object):
def __init__(self, request: str, *args: str):
self.request = request