|
|
|
@ -72,7 +72,7 @@
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#define ktalkdmax(a,b) ( (a) > (b) ? (a) : (b) )
|
|
|
|
|
#define ktaltdmax(a,b) ( (a) > (b) ? (a) : (b) )
|
|
|
|
|
#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 );
|
|
|
|
|
(void)snprintf(line_buf[i], N_CHARS, " ");
|
|
|
|
|
sizes[i] = strlen(line_buf[i]);
|
|
|
|
|
max_size = ktalkdmax(max_size, sizes[i]);
|
|
|
|
|
max_size = ktaltdmax(max_size, sizes[i]);
|
|
|
|
|
i++;
|
|
|
|
|
(void)snprintf(line_buf[i], N_CHARS, Options.announce1,
|
|
|
|
|
localclock->tm_hour , localclock->tm_min );
|
|
|
|
|
sizes[i] = strlen(line_buf[i]);
|
|
|
|
|
max_size = ktalkdmax(max_size, sizes[i]);
|
|
|
|
|
max_size = ktaltdmax(max_size, sizes[i]);
|
|
|
|
|
i++;
|
|
|
|
|
snprintf(buffer, N_CHARS, "%s@%s", request->l_name, remotename);
|
|
|
|
|
snprintf(line_buf[i], N_CHARS, Options.announce2, buffer);
|
|
|
|
|
sizes[i] = strlen(line_buf[i]);
|
|
|
|
|
max_size = ktalkdmax(max_size, sizes[i]);
|
|
|
|
|
max_size = ktaltdmax(max_size, sizes[i]);
|
|
|
|
|
i++;
|
|
|
|
|
|
|
|
|
|
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]);
|
|
|
|
|
max_size = ktalkdmax(max_size, sizes[i]);
|
|
|
|
|
max_size = ktaltdmax(max_size, sizes[i]);
|
|
|
|
|
i++;
|
|
|
|
|
(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++;
|
|
|
|
|
bptr = big_buf;
|
|
|
|
|
if (!force_no_sound) /* set if a X announce has been done */
|
|
|
|
|