Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static int
- cmd_allchannels (session *sess, char *tbuf, char *word[], char *word_eol[])
- {
- GSList *list = sess_list;
- if (!*word_eol[2])
- return FALSE;
- while (list)
- {
- sess = list->data;
- if (sess->type == SESS_CHANNEL && sess->channel[0] && sess->server->connected)
- {
- handle_command (sess, word_eol[2], FALSE);
- }
- list = list->next;
- }
- return TRUE;
- }
- static int
- cmd_allchannelslocal (session *sess, char *tbuf, char *word[], char *word_eol[])
- {
- GSList *list = sess_list;
- server *serv = sess->server;
- if (!*word_eol[2])
- return FALSE;
- while (list)
- {
- sess = list->data;
- if (sess->type == SESS_CHANNEL && sess->channel[0] &&
- sess->server->connected && sess->server == serv)
- {
- handle_command (sess, word_eol[2], FALSE);
- }
- list = list->next;
- }
- return TRUE;
- }
Add Comment
Please, Sign In to add comment