From 452ecd50c5b41cbbc577153a256faaf895cd6375 Mon Sep 17 00:00:00 2001 From: Georg Date: Sun, 5 Sep 2021 19:36:02 +0200 Subject: [PATCH] Repaired group iteration Signed-off-by: Georg --- plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.py b/plugin.py index cf56129..94adebe 100644 --- a/plugin.py +++ b/plugin.py @@ -249,7 +249,7 @@ class Keycloak(callbacks.Plugin): usergroups = response.json() if usergroups: for group in usergroups: - groupname = usergroups[0]['name'] + groupname = group['name'] irc.reply(groupname) else: irc.reply("No groups.") @@ -288,7 +288,7 @@ class Keycloak(callbacks.Plugin): usergroups = response.json() if usergroups: for group in usergroups: - groupname = usergroups[0]['name'] + groupname = group['name'] irc.reply(groupname) else: irc.reply("No groups.")