Repaired group iteration
Signed-off-by: Georg <georg@lysergic.dev>
This commit is contained in:
parent
7777e637fd
commit
452ecd50c5
@ -249,7 +249,7 @@ class Keycloak(callbacks.Plugin):
|
|||||||
usergroups = response.json()
|
usergroups = response.json()
|
||||||
if usergroups:
|
if usergroups:
|
||||||
for group in usergroups:
|
for group in usergroups:
|
||||||
groupname = usergroups[0]['name']
|
groupname = group['name']
|
||||||
irc.reply(groupname)
|
irc.reply(groupname)
|
||||||
else:
|
else:
|
||||||
irc.reply("No groups.")
|
irc.reply("No groups.")
|
||||||
@ -288,7 +288,7 @@ class Keycloak(callbacks.Plugin):
|
|||||||
usergroups = response.json()
|
usergroups = response.json()
|
||||||
if usergroups:
|
if usergroups:
|
||||||
for group in usergroups:
|
for group in usergroups:
|
||||||
groupname = usergroups[0]['name']
|
groupname = group['name']
|
||||||
irc.reply(groupname)
|
irc.reply(groupname)
|
||||||
else:
|
else:
|
||||||
irc.reply("No groups.")
|
irc.reply("No groups.")
|
||||||
|
Loading…
Reference in New Issue
Block a user