diff options
| -rw-r--r-- | plugin.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -248,9 +248,11 @@ class Keycloak(callbacks.Plugin): print(url) usergroups = response.json() if usergroups: + groups = [] for group in usergroups: groupname = group['name'] - irc.reply(groupname) + groups.append(groupname) + irc.replies(groups, prefixer='Group(s): ', joiner=', ', onlyPrefixFirst=True) else: irc.reply("No groups.") except: @@ -287,9 +289,11 @@ class Keycloak(callbacks.Plugin): print(url) usergroups = response.json() if usergroups: + groups = [] for group in usergroups: groupname = group['name'] - irc.reply(groupname) + groups.append(groupname) + irc.replies(groups, prefixer='Group(s): ', joiner=', ', onlyPrefixFirst=True) else: irc.reply("No groups.") except: |
