version 1.10, 2014/10/20 22:29:25 |
version 1.11, 2015/04/25 18:33:59 |
|
|
struct client *c; |
struct client *c; |
struct message_entry *msg; |
struct message_entry *msg; |
char *tim; |
char *tim; |
u_int i; |
|
int done; |
int done; |
|
|
done = 0; |
done = 0; |
|
|
if ((c = cmd_find_client(cmdq, args_get(args, 't'), 0)) == NULL) |
if ((c = cmd_find_client(cmdq, args_get(args, 't'), 0)) == NULL) |
return (CMD_RETURN_ERROR); |
return (CMD_RETURN_ERROR); |
|
|
for (i = 0; i < ARRAY_LENGTH(&c->message_log); i++) { |
TAILQ_FOREACH(msg, &c->message_log, entry) { |
msg = &ARRAY_ITEM(&c->message_log, i); |
|
|
|
tim = ctime(&msg->msg_time); |
tim = ctime(&msg->msg_time); |
*strchr(tim, '\n') = '\0'; |
*strchr(tim, '\n') = '\0'; |
|
|