From d41aa7a6c2b255dc449626f244bb106d3a36a4ba Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 26 Jan 2020 16:08:35 +0000 Subject: we should be checking if there are no flags specified --- modules/channel_op.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/channel_op.py b/modules/channel_op.py index 0205b22a..4bba6d4c 100644 --- a/modules/channel_op.py +++ b/modules/channel_op.py @@ -259,7 +259,7 @@ class Module(ModuleManager.BaseModule): current_flags = event["spec"][0].get_user_setting(target.get_id(), "flags", "") - if event["spec"][2]: + if not event["spec"][2]: current_flags_str = ("+%s" % current_flags) if current_flags else "" event["stdout"].write("Flags for %s: %s" % (target, current_flags_str)) -- cgit v1.3.1-10-gc9f91