Skip to content

Commit 2fc623c

Browse files
committed
FIX: Missing get_state
1 parent 6a523f7 commit 2fc623c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,7 @@ def comment(bot, update):
164164
state_handler = StateHandler.get_instance()
165165
user_state = state_handler.get_user(user_id)
166166

167-
if user_state == UserState.IDLE:
168-
167+
if user_state.get_state() == UserState.IDLE:
169168
if len(params) > 1:
170169
text = " ".join(params[1:])
171170
logger.debug("New comment! {}!".format(user_id))

0 commit comments

Comments
 (0)