Esempio n. 1
0
static	void	help_put_it	(const char *topic, const char *format, ...)
{
    char putbuf[BIG_BUFFER_SIZE * 3 + 1];

    if (format)
    {
        va_list args;
        va_start (args, format);
        vsnprintf(putbuf, BIG_BUFFER_SIZE * 3, format, args);
        va_end(args);

        if (do_hook(HELP_LIST, "%s %s", topic, putbuf))
        {
            Window *old_to_window = to_window;

            /*
             * 'to_window' is of higher priority than who_level
             * so we don't have to mangle who_level to send the
             * output to the help window.
             */
            if (help_window)
                to_window = help_window;
            else
                to_window = current_window;
            add_to_screen(putbuf);
            to_window = old_to_window;
        }
    }
}
Esempio n. 2
0
void put_echo (char *str)
{
	add_to_log(irclog_fp, 0, str, logfile_line_mangler);
	add_to_screen(str);
}
Esempio n. 3
0
/*
 * put_echo: a display routine for echo that doesnt require an snprintf,
 * so it doesnt have that overhead, and it also doesnt have any size 
 * limitations.  The sky's the limit!
 */
void	put_echo (const unsigned char *str)
{
	add_to_log(0, irclog_fp, -1, str, 0, NULL);
	add_to_screen(str);
}