Lowercase the args tag when building the command XML
The args tag is always lowercase, while the command name is Capitalized or CamelCased
This commit is contained in:
+1
-1
@@ -242,7 +242,7 @@ class VacBotCommand:
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user