aboutsummaryrefslogtreecommitdiffstats
path: root/root_commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'root_commands.c')
-rw-r--r--root_commands.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/root_commands.c b/root_commands.c
index 6c10346e..6188245d 100644
--- a/root_commands.c
+++ b/root_commands.c
@@ -1292,20 +1292,12 @@ static void cmd_group( irc_t *irc, char **cmd )
}
else if( g_strncasecmp(cmd[1], "info", len ) == 0 )
{
- bee_group_t *bg = NULL;
+ bee_group_t *bg;
int n = 0;
MIN_ARGS(2);
+ bg = bee_group_by_name( irc->b, cmd[2], FALSE );
- for( l = irc->b->groups; l; l = l->next )
- {
- bee_group_t *bg = l->data;
- if( !strcmp( bg->name, cmd[2] ) )
- {
- bg = l->data;
- break;
- }
- }
if( bg )
{
if( strchr(irc->umode, 'b') )