pike.git / lib / modules / Search.pmod / Utils.pmod

version» Context lines:

pike.git/lib/modules/Search.pmod/Utils.pmod:709:    "extra varchar(255))");    }       void werror_event( int code, string type, void|string extra, void|int log_profile )    {    mapping types = ([ "error" : "Error",    "warning" : "Warning",    "notice" : "Notice", ]);       werror(sprintf("%sSearch: %s: %s\n", -  " : ", +  " : ",    types[type],    extra?sprintf(codes[(int)code], @(extra/"\n")):codes[(int)code]));    }       void log_purge(int days)    {    Sql.Sql db = get_db();    if(!db) return;    int t1 = time();    if (t1 < last_log_purge_time + log_purge_freq) return;