From 0a092f0e1edec1b0a7690a6f89765f51714b3169 Mon Sep 17 00:00:00 2001 From: Thomas Ward Date: Tue, 17 Jan 2017 11:36:33 -0500 Subject: [PATCH] Actually use joined blacklist pattern instead of the parts. --- chatcommands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chatcommands.py b/chatcommands.py index bff604fd06..c5dc278d41 100644 --- a/chatcommands.py +++ b/chatcommands.py @@ -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) @@ -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) @@ -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)