This commit is contained in:
Richard Chien
2017-01-11 14:16:51 +08:00
parent 9c794334c1
commit 1040b600d6
3 changed files with 7 additions and 7 deletions

View File

@ -174,7 +174,7 @@ class CommandRegistry:
allowed_roles = allowed_roles.intersection({'owner'})
groups = list(filter(
lambda g: g.get('group_uid') == ctx_msg.get('group_uid'),
api.get_group_info(via='qq').json()
api.get_group_info(ctx_msg).json()
))
if len(groups) <= 0 or 'member' not in groups[0]:
# This is strange, not likely happens