mcabber/src/jabglue.c
changeset 36 8f1a5e79ca40
parent 35 a8ceaa3005fd
child 37 1441ba37a5c1
equal deleted inserted replaced
35:a8ceaa3005fd 36:8f1a5e79ca40
    44 void statehandler(jconn, int);
    44 void statehandler(jconn, int);
    45 void packethandler(jconn, jpacket);
    45 void packethandler(jconn, jpacket);
    46 
    46 
    47 void screen_logger(jconn j, int io, const char *buf)
    47 void screen_logger(jconn j, int io, const char *buf)
    48 {
    48 {
    49   scr_LogPrint("%.03s: %s", ((io == 0) ? "OUT" : "IN"), buf);
    49   scr_LogPrint("%03s: %s", ((io == 0) ? "OUT" : "IN"), buf);
    50 }
    50 }
    51 
    51 
    52 void file_logger(jconn j, int io, const char *buf)
    52 void file_logger(jconn j, int io, const char *buf)
    53 {
    53 {
    54   ut_WriteLog("%.03s: %s\n", ((io == 0) ? "OUT" : "IN"), buf);
    54   ut_WriteLog("%03s: %s\n", ((io == 0) ? "OUT" : "IN"), buf);
    55 }
    55 }
    56 
    56 
    57 void big_logger(jconn j, int io, const char *buf)
    57 void big_logger(jconn j, int io, const char *buf)
    58 {
    58 {
    59   screen_logger(j, io, buf);
    59   screen_logger(j, io, buf);