|
|
@ -72,7 +72,7 @@
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#define ktalkdmax(a,b) ( (a) > (b) ? (a) : (b) )
|
|
|
|
#define ktaltdmax(a,b) ( (a) > (b) ? (a) : (b) )
|
|
|
|
#define N_LINES 5
|
|
|
|
#define N_LINES 5
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
@ -383,17 +383,17 @@ void print_mesg(FILE * tf, NEW_CTL_MSG * request, const char *
|
|
|
|
localclock = localtime( (const time_t *) &clock.tv_sec );
|
|
|
|
localclock = localtime( (const time_t *) &clock.tv_sec );
|
|
|
|
(void)snprintf(line_buf[i], N_CHARS, " ");
|
|
|
|
(void)snprintf(line_buf[i], N_CHARS, " ");
|
|
|
|
sizes[i] = strlen(line_buf[i]);
|
|
|
|
sizes[i] = strlen(line_buf[i]);
|
|
|
|
max_size = ktalkdmax(max_size, sizes[i]);
|
|
|
|
max_size = ktaltdmax(max_size, sizes[i]);
|
|
|
|
i++;
|
|
|
|
i++;
|
|
|
|
(void)snprintf(line_buf[i], N_CHARS, Options.announce1,
|
|
|
|
(void)snprintf(line_buf[i], N_CHARS, Options.announce1,
|
|
|
|
localclock->tm_hour , localclock->tm_min );
|
|
|
|
localclock->tm_hour , localclock->tm_min );
|
|
|
|
sizes[i] = strlen(line_buf[i]);
|
|
|
|
sizes[i] = strlen(line_buf[i]);
|
|
|
|
max_size = ktalkdmax(max_size, sizes[i]);
|
|
|
|
max_size = ktaltdmax(max_size, sizes[i]);
|
|
|
|
i++;
|
|
|
|
i++;
|
|
|
|
snprintf(buffer, N_CHARS, "%s@%s", request->l_name, remotename);
|
|
|
|
snprintf(buffer, N_CHARS, "%s@%s", request->l_name, remotename);
|
|
|
|
snprintf(line_buf[i], N_CHARS, Options.announce2, buffer);
|
|
|
|
snprintf(line_buf[i], N_CHARS, Options.announce2, buffer);
|
|
|
|
sizes[i] = strlen(line_buf[i]);
|
|
|
|
sizes[i] = strlen(line_buf[i]);
|
|
|
|
max_size = ktalkdmax(max_size, sizes[i]);
|
|
|
|
max_size = ktaltdmax(max_size, sizes[i]);
|
|
|
|
i++;
|
|
|
|
i++;
|
|
|
|
|
|
|
|
|
|
|
|
if (!(strcmp(localname,remotename))) {
|
|
|
|
if (!(strcmp(localname,remotename))) {
|
|
|
@ -403,12 +403,12 @@ void print_mesg(FILE * tf, NEW_CTL_MSG * request, const char *
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sizes[i] = strlen(line_buf[i]);
|
|
|
|
sizes[i] = strlen(line_buf[i]);
|
|
|
|
max_size = ktalkdmax(max_size, sizes[i]);
|
|
|
|
max_size = ktaltdmax(max_size, sizes[i]);
|
|
|
|
i++;
|
|
|
|
i++;
|
|
|
|
(void)snprintf(line_buf[i], N_CHARS, " ");
|
|
|
|
(void)snprintf(line_buf[i], N_CHARS, " ");
|
|
|
|
sizes[i] = strlen(line_buf[i]);
|
|
|
|
sizes[i] = strlen(line_buf[i]);
|
|
|
|
sizes[i] = strlen(line_buf[i]);
|
|
|
|
sizes[i] = strlen(line_buf[i]);
|
|
|
|
max_size = ktalkdmax(max_size, sizes[i]);
|
|
|
|
max_size = ktaltdmax(max_size, sizes[i]);
|
|
|
|
i++;
|
|
|
|
i++;
|
|
|
|
bptr = big_buf;
|
|
|
|
bptr = big_buf;
|
|
|
|
if (!force_no_sound) /* set if a X announce has been done */
|
|
|
|
if (!force_no_sound) /* set if a X announce has been done */
|
|
|
|