matrix bridge: Improve join/leave option.

Original '--no-noise' option had a parameter and did not disable;
new parameter is '--enable-join-leave', and sets same option for
compatibility.
This commit is contained in:
neiljp (Neil Pilgrim) 2018-06-01 15:02:09 -07:00
parent d45b43a9b1
commit a6e39509d9

View file

@ -154,9 +154,9 @@ def parse_args():
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
parser.add_argument('-c', '--config', required=True, parser.add_argument('-c', '--config', required=True,
help="Path to the config file for the bridge.") help="Path to the config file for the bridge.")
parser.add_argument('--no_noise', parser.add_argument('--show-join-leave', dest='no_noise',
default=True, default=True, action='store_false',
help="Suppress the IRC join/leave events.") help="Enable IRC join/leave events.")
return parser.parse_args() return parser.parse_args()
def read_configuration(config_file: str) -> Dict[str, Dict[str, str]]: def read_configuration(config_file: str) -> Dict[str, Dict[str, str]]: