assign option to correct instance

This commit is contained in:
Fabian Dill 2020-06-27 16:54:07 +02:00
parent de2cb1692e
commit 68e92ae5b4
1 changed files with 2 additions and 2 deletions

View File

@ -1106,8 +1106,8 @@ class ServerCommandProcessor(CommandProcessor):
return False
else:
return True
setattr(self, option_name, attrtype(option))
self.output(f"Set option {option_name} to {getattr(self, option_name)}")
setattr(self.ctx, option_name, attrtype(option))
self.output(f"Set option {option_name} to {getattr(self.ctx, option_name)}")
return True
else:
known = (f"{option}:{otype}" for option, otype in self.simple_options.items())