From a6e39509d9c125c1e920a411bf1e9d79bdbb9c76 Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Fri, 1 Jun 2018 15:02:09 -0700 Subject: [PATCH] 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. --- zulip/integrations/matrix/matrix_bridge.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zulip/integrations/matrix/matrix_bridge.py b/zulip/integrations/matrix/matrix_bridge.py index 5be58e5..86ab196 100644 --- a/zulip/integrations/matrix/matrix_bridge.py +++ b/zulip/integrations/matrix/matrix_bridge.py @@ -154,9 +154,9 @@ def parse_args(): parser = argparse.ArgumentParser() parser.add_argument('-c', '--config', required=True, help="Path to the config file for the bridge.") - parser.add_argument('--no_noise', - default=True, - help="Suppress the IRC join/leave events.") + parser.add_argument('--show-join-leave', dest='no_noise', + default=True, action='store_false', + help="Enable IRC join/leave events.") return parser.parse_args() def read_configuration(config_file: str) -> Dict[str, Dict[str, str]]: