Browse Source

Show full name too.

tags/v0.1^2
Ben Kurtovic 12 years ago
parent
commit
05ab2452cf
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      earwigbot/commands/langcode.py

+ 4
- 2
earwigbot/commands/langcode.py View File

@@ -52,9 +52,11 @@ class Langcode(Command):
self.reply(data, msg)
return
elif name.lower() == lcase or localname.lower() == lcase:
if name != localname:
name += " ({0})".format(localname)
sites = ", ".join([s["url"] for s in site["site"]])
msg = "\x0302{0}\x0F is {1} ({2})"
self.reply(data, msg.format(code, site["code"], sites))
msg = "{0} is \x0302{1}\x0F ({2})"
self.reply(data, msg.format(name, site["code"], sites))
return

self.reply(data, "Language \x0302{0}\x0F not found.".format(code))

Loading…
Cancel
Save