wikipedia: fix localisation
This commit is contained in:
parent
70cdcad604
commit
3d918d1de8
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue