Changes in root_commands.c [2c18fcd:c2cc24c]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
root_commands.c
r2c18fcd rc2cc24c 1290 1290 } 1291 1291 irc_rootmsg( irc, "End of group list" ); 1292 } 1293 else if( g_strncasecmp(cmd[1], "info", len ) == 0 ) 1294 { 1295 bee_group_t *bg = NULL; 1296 int n = 0; 1297 1298 MIN_ARGS(2); 1299 1300 for( l = irc->b->groups; l; l = l->next ) 1301 { 1302 bee_group_t *bg = l->data; 1303 if( !strcmp( bg->name, cmd[2] ) ) 1304 { 1305 bg = l->data; 1306 break; 1307 } 1308 } 1309 if( bg ) 1310 { 1311 if( strchr(irc->umode, 'b') ) 1312 irc_rootmsg( irc, "Members of %s:", cmd[2] ); 1313 for( l = irc->b->users; l; l = l->next ) 1314 { 1315 bee_user_t *bu = l->data; 1316 if( bu->group == bg ) 1317 irc_rootmsg( irc, "%d. %s", n ++, bu->nick ? : bu->handle ); 1318 } 1319 irc_rootmsg( irc, "End of member list" ); 1320 } 1321 else 1322 irc_rootmsg( irc, "Unknown group: %s. Please use \x02group list\x02 to get a list of available groups.", cmd[2] ); 1292 1323 } 1293 1324 else
Note: See TracChangeset
for help on using the changeset viewer.