Skip to content

Commit

Permalink
Actually use joined blacklist pattern instead of the parts.
Browse files Browse the repository at this point in the history
  • Loading branch information
teward committed Jan 17, 2017
1 parent bfad7ae commit 0a092f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chatcommands.py
Expand Up @@ -273,7 +273,7 @@ def command_blacklist_website(message_parts, ev_user_name, ev_room, ev_user_id,
return Response(command_status=False, message="An invalid website pattern was provided, not blacklisting.")
result = GitManager.add_to_blacklist(
blacklist="website",
items_to_blacklist=message_parts[1:],
items_to_blacklist=website_pattern,
username=ev_user_name,
chat_profile_link=chat_user_profile_link,
code_permissions=datahandling.is_code_privileged(ev_room, ev_user_id, wrap2)
Expand All @@ -300,7 +300,7 @@ def command_blacklist_keyword(message_parts, ev_user_name, ev_room, ev_user_id,
return Response(command_status=False, message="An invalid keyword pattern was provided, not blacklisting.")
result = GitManager.add_to_blacklist(
blacklist="keyword",
items_to_blacklist=message_parts[1:],
items_to_blacklist=keyword_pattern,
username=ev_user_name,
chat_profile_link=chat_user_profile_link,
code_permissions=datahandling.is_code_privileged(ev_room, ev_user_id, wrap2)
Expand All @@ -327,7 +327,7 @@ def command_blacklist_username(message_parts, ev_user_name, ev_room, ev_user_id,
return Response(command_status=False, message="An invalid username pattern was provided, not blacklisting.")
result = GitManager.add_to_blacklist(
blacklist="username",
items_to_blacklist=message_parts[1:],
items_to_blacklist=username_pattern,
username=ev_user_name,
chat_profile_link=chat_user_profile_link,
code_permissions=datahandling.is_code_privileged(ev_room, ev_user_id, wrap2)
Expand Down

0 comments on commit 0a092f0

Please sign in to comment.