diff --git a/lib/lita/handlers/google.rb b/lib/lita/handlers/google.rb index 3b8d927..b55bcbc 100644 --- a/lib/lita/handlers/google.rb +++ b/lib/lita/handlers/google.rb @@ -9,6 +9,10 @@ class Google < Handler "google QUERY" => "Return the first Google search result for QUERY." }) + def self.default_config(handler_config) + handler_config.safe_search = :active + end + def search(response) query = response.matches[0][0]