Skip to content

Commit 01084b8

Browse files
committed
Make the priorities compatible with existing hooks
1 parent 77d6c03 commit 01084b8

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

cloudbot/hook.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010

1111
@unique
1212
class Priority(IntEnum):
13-
LOWEST = -128
14-
LOW = -64
13+
# Reversed to maintain compatibility with sieve hooks numeric priority
14+
LOWEST = 127
15+
LOW = 63
1516
NORMAL = 0
16-
HIGH = 63
17-
HIGHEST = 127
17+
HIGH = -64
18+
HIGHEST = -128
1819

1920

2021
@unique

0 commit comments

Comments
 (0)