Changeset 22d41a2 for log.c


Ignore:
Timestamp:
2005-11-18T19:10:20Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
d908e3a
Parents:
517ecc4
Message:

Quit messages should appear again, at least on crashes. (And when running in inetd mode.)
The logging system needs some more work to complete this, maybe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • log.c

    r517ecc4 r22d41a2  
    134134static void log_irc(int level, char *message) {
    135135        if(level==LOGLVL_ERROR)
    136                 irc_write_all("ERROR :Error: %s", message);
     136                irc_write_all(1, "ERROR :Error: %s", message);
    137137        if(level==LOGLVL_WARNING)
    138                 irc_write_all("ERROR :Warning: %s", message);
     138                irc_write_all(0, "ERROR :Warning: %s", message);
    139139        if(level==LOGLVL_INFO)
    140                 irc_write_all("ERROR :Informational: %s", message);     
     140                irc_write_all(0, "ERROR :Informational: %s", message); 
    141141#ifdef DEBUG
    142142        if(level==LOGLVL_DEBUG)
    143                 irc_write_all("ERROR :Debug: %s", message);     
     143                irc_write_all(0, "ERROR :Debug: %s", message); 
    144144#endif 
    145145
Note: See TracChangeset for help on using the changeset viewer.