summaryrefslogtreecommitdiffstats
path: root/plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugin.py')
-rw-r--r--plugin.py4
1 files 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.")