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