| Index: shell/src/MatchesCommand.cpp |
| =================================================================== |
| --- a/shell/src/MatchesCommand.cpp |
| +++ b/shell/src/MatchesCommand.cpp |
| @@ -21,20 +21,20 @@ void MatchesCommand::operator()(const st |
| { |
| ShowUsage(); |
| return; |
| } |
| AdblockPlus::FilterPtr match = filterEngine.Matches(url, contentType, documentUrl); |
| if (!match) |
| std::cout << "No match" << std::endl; |
| - else if (match->GetProperty("type", "") == "exception") |
| - std::cout << "Whitelisted" << std::endl; |
| + else if (match->GetType() == AdblockPlus::Filter::TYPE_EXCEPTION) |
| + std::cout << "Whitelisted by " << match->GetProperty("text")->AsString() << std::endl; |
| else |
| - std::cout << "Blocked" << std::endl; |
| + std::cout << "Blocked by " << match->GetProperty("text")->AsString() << std::endl; |
| } |
| std::string MatchesCommand::GetDescription() const |
| { |
| return "Returns the first filter that matches the supplied URL"; |
| } |
| std::string MatchesCommand::GetUsage() const |