Skip to content

Commit

Permalink
Lowercase the args tag when building the command XML
Browse files Browse the repository at this point in the history
The args tag is always lowercase, while the command name is Capitalized or CamelCased
  • Loading branch information
OverloadUT committed Dec 9, 2017
1 parent 072db97 commit b32ced6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sucks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def wait_for_completion(self, bot):
def to_xml(self):
ctl = ET.Element('ctl', {'td': self.name})
if self.args:
inner = ET.Element(self.name, self.args)
inner = ET.Element(self.name.lower(), self.args)
ctl.append(inner)
return ctl

Expand Down

0 comments on commit b32ced6

Please sign in to comment.