]> git.aero2k.de Git - urlbot-v3.git/commitdiff
bugfix
authorThorsten S <mail@aero2k.de>
Fri, 3 Jan 2020 15:29:54 +0000 (16:29 +0100)
committerThorsten S <mail@aero2k.de>
Fri, 3 Jan 2020 15:29:54 +0000 (16:29 +0100)
distbot/plugins/searx.py

index 1f4cdbc11662e1c3d4902cc89325adac06918282..3c1ca1aada082f6e29e899f8d4bb7691d82ccda9 100644 (file)
@@ -101,7 +101,7 @@ class Searx(Worker):
 
     def parse_body(self, msg):
         words = get_words(msg)
-        if words[1] == "next-searx":
+        if words[0] == "next-searx":
             searx_provider = self.search_list.pop(0)
             return Action(msg='Ok. There goes {}'.format(searx_provider))
         else: