Repaired group iteration

Signed-off-by: Georg <georg@lysergic.dev>
This commit is contained in:
Georg Pfuetzenreuter 2021-09-05 19:36:02 +02:00
parent 7777e637fd
commit 452ecd50c5
Signed by: Georg
GPG Key ID: 1DAF57F49F8E8F22

View File

@ -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.")