version 1.22, 2015/11/24 20:40:51 |
version 1.23, 2015/12/08 01:10:31 |
|
|
return (CMD_RETURN_ERROR); |
return (CMD_RETURN_ERROR); |
|
|
TAILQ_FOREACH(cloop, &clients, entry) { |
TAILQ_FOREACH(cloop, &clients, entry) { |
if (cloop->session != s) |
if (cloop->session == s) |
continue; |
server_client_detach(cloop, msgtype); |
proc_send_s(cloop->peer, msgtype, cloop->session->name); |
|
} |
} |
return (CMD_RETURN_STOP); |
return (CMD_RETURN_STOP); |
} |
} |
|
|
|
|
if (args_has(args, 'a')) { |
if (args_has(args, 'a')) { |
TAILQ_FOREACH(cloop, &clients, entry) { |
TAILQ_FOREACH(cloop, &clients, entry) { |
if (cloop->session == NULL || cloop == c) |
if (cloop->session != NULL && cloop != c) |
continue; |
server_client_detach(cloop, msgtype); |
proc_send_s(cloop->peer, msgtype, cloop->session->name); |
|
} |
} |
return (CMD_RETURN_NORMAL); |
return (CMD_RETURN_NORMAL); |
} |
} |
|
|
proc_send_s(c->peer, msgtype, c->session->name); |
server_client_detach(c, msgtype); |
return (CMD_RETURN_STOP); |
return (CMD_RETURN_STOP); |
} |
} |