aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorGravatar jesopo2019-01-28 23:29:52 +0000
committerGravatar jesopo2019-01-28 23:29:52 +0000
commitd10a6d94c13724f5c9ed476da63f0839ebaf2ad9 (patch)
treed738a3564857654eb9214a012265f1a8055060ea /src/utils
parentUse `target` (after prefixes lstrip) to get channel object (line_handler.py) (diff)
signature
Add a way to force success and force failure of a command permission check
(commands.py)
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/consts.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/consts.py b/src/utils/consts.py
index 81e86626..f5272cab 100644
--- a/src/utils/consts.py
+++ b/src/utils/consts.py
@@ -67,3 +67,7 @@ ANSI_BOLD = "\033[1m"
ANSI_BOLD_RESET = "\033[22m"
ANSI_UNDERLINE = "\033[4m"
ANSI_UNDERLINE_RESET = "\033[24m"
+
+PERMISSION_HARD_FAIL = 0
+PERMISSION_FORCE_SUCCESS = 1
+PERMISSION_ERROR = 2