Skip to content

Commit 404ede2

Browse files
author
Pietro Albini
committed
Fix Windows compatibility (again)
1 parent 3f72a35 commit 404ede2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

botogram/bot.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,13 @@ def __setattr__(self, name, value):
9595

9696
def before_processing(self, func):
9797
"""Register a before processing hook"""
98-
return self._main_component.add_before_processing_hook(func)
98+
self._main_component.add_before_processing_hook(func)
99+
return func
99100

100101
def process_message(self, func):
101102
"""Add a message processor hook"""
102-
return self._main_component.add_process_message_hook(func)
103+
self._main_component.add_process_message_hook(func)
104+
return func
103105

104106
def message_equals(self, string, ignore_case=True):
105107
"""Add a message equals hook"""

0 commit comments

Comments
 (0)