wikipedia: fix localisation

This commit is contained in:
dece 2020-10-09 23:37:54 +02:00
parent 70cdcad604
commit 3d918d1de8

View file

@ -25,9 +25,11 @@ class WikipediaPlugin(Plugin):
def on_pubmsg(self, event): def on_pubmsg(self, event):
if not self.should_handle_command(event.arguments[0]): if not self.should_handle_command(event.arguments[0]):
return False return False
if self.command.ident == "science": # "science"
if self.command.ident == self.config["commands"][0]:
self.tell_random_summary(event) self.tell_random_summary(event)
elif self.command.ident == "define": # "definition"
elif self.command.ident == self.config["commands"][1]:
self.tell_definition(event) self.tell_definition(event)
return True return True