Changeset 23d6165
- Timestamp:
- 2010-08-04T20:04:39Z (14 years ago)
- Branches:
- master
- Children:
- 65a4a64
- Parents:
- 65016a6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_commands.c
r65016a6 r23d6165 595 595 set_setstr( &irc->b->set, "away", NULL ); 596 596 } 597 } 598 599 static void irc_cmd_list( irc_t *irc, char **cmd ) 600 { 601 GSList *l; 602 603 for( l = irc->channels; l; l = l->next ) 604 { 605 irc_channel_t *ic = l->data; 606 607 irc_send_num( irc, 322, "%s %d :%s", 608 ic->name, g_slist_length( ic->users ), ic->topic ? : "" ); 609 } 610 irc_send_num( irc, 323, ":%s", "End of /LIST" ); 597 611 } 598 612 … … 661 675 { "topic", 1, irc_cmd_topic, IRC_CMD_LOGGED_IN }, 662 676 { "oper", 2, irc_cmd_oper, IRC_CMD_LOGGED_IN }, 677 { "list", 0, irc_cmd_list, IRC_CMD_LOGGED_IN }, 663 678 { "die", 0, NULL, IRC_CMD_OPER_ONLY | IRC_CMD_TO_MASTER }, 664 679 { "deaf", 0, NULL, IRC_CMD_OPER_ONLY | IRC_CMD_TO_MASTER },
Note: See TracChangeset
for help on using the changeset viewer.