mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
assign option to correct instance
This commit is contained in:
@@ -1106,8 +1106,8 @@ class ServerCommandProcessor(CommandProcessor):
|
|||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
return True
|
return True
|
||||||
setattr(self, option_name, attrtype(option))
|
setattr(self.ctx, option_name, attrtype(option))
|
||||||
self.output(f"Set option {option_name} to {getattr(self, option_name)}")
|
self.output(f"Set option {option_name} to {getattr(self.ctx, option_name)}")
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
known = (f"{option}:{otype}" for option, otype in self.simple_options.items())
|
known = (f"{option}:{otype}" for option, otype in self.simple_options.items())
|
||||||
|
Reference in New Issue
Block a user