44 def post_search(self, request:
"SXNG_Request", search:
"SearchWithPlugins") -> EngineResults:
45 """Returns a result list only for the first page."""
48 if search.search_query.pageno > 1:
51 if self.
ip_regex.search(search.search_query.query)
and request.remote_addr:
53 results.types.Answer(answer=gettext(
"Your IP is: ") + ip_address(request.remote_addr).compressed)
56 if self.
ua_regex.match(search.search_query.query):
57 results.add(results.types.Answer(answer=gettext(
"Your user-agent is: ") + str(request.user_agent)))