/[svn]/hopm/branches/1.1.x/src/scan.c
ViewVC logotype

Diff of /hopm/branches/1.1.x/src/scan.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6970 by michael, Sun Jul 19 12:00:15 2015 UTC revision 6971 by michael, Sat Dec 19 20:30:07 2015 UTC
# Line 44  Line 44 
44  #include "main.h"  #include "main.h"
45  #include "memory.h"  #include "memory.h"
46  #include "match.h"  #include "match.h"
47    #include "misc.h"
48  #include "scan.h"  #include "scan.h"
49    
50  /* Libopm */  /* Libopm */
# Line 976  scan_manual(char *param, const struct Ch Line 977  scan_manual(char *param, const struct Ch
977  static void  static void
978  scan_log(OPM_REMOTE_T *remote)  scan_log(OPM_REMOTE_T *remote)
979  {  {
   char buf_present[32];  
   time_t present = 0;  
980    struct scan_struct *ss = remote->data;    struct scan_struct *ss = remote->data;
981    
982    if (!(OptionsItem->scanlog && scanlogfile))    if (!(OptionsItem->scanlog && scanlogfile))
983      return;      return;
984    
985    time(&present);    fprintf(scanlogfile, "[%s] %s:%d (%s) \"%s\"\n", date_iso8601(0), remote->ip,
   strftime(buf_present, sizeof(buf_present), "%FT%H:%M:%S%z", localtime(&present));  
   
   fprintf(scanlogfile, "[%s] %s:%d (%s) \"%s\"\n", buf_present, remote->ip,  
986            remote->port, scan_gettype(remote->protocol), ss->proof);            remote->port, scan_gettype(remote->protocol), ss->proof);
987    fflush(scanlogfile);    fflush(scanlogfile);
988  }  }

Legend:
Removed from v.6970  
changed lines
  Added in v.6971

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28