]>
jfr.im git - irc/quakenet/newserv.git/blob - core/error.c
8 char *sevtostring(int severity
) {
26 return "unknown error";
30 void Error(char *source
, int severity
, char *reason
, ... ) {
38 vsnprintf(buf
,512,reason
,va
);
41 if (severity
>ERR_DEBUG
) {
44 strftime(timebuf
,100,"%Y-%m-%d %H:%M:%S",tm
);
45 fprintf(stderr
,"[%s] %s(%s): %s\n",timebuf
,sevtostring(severity
),source
,buf
);