file autoloading, when a file is referenced the first time, it is tried to laod from...
authorChristian Thaeter <ct@pipapo.org>
Thu, 8 Nov 2007 04:12:00 +0000 (05:12 +0100)
committerChristian Thaeter <ct@pipapo.org>
Thu, 8 Nov 2007 04:12:00 +0000 (05:12 +0100)
src/rxpd_connection.c

index 0c6cbcc..aa12f55 100644 (file)
@@ -199,7 +199,7 @@ rxpd_connection_parse_cmd (void* ptr)
 
   if (line[i->sz])
     {
-      // rulename provided
+      // filename provided
       self->file = (struct rxpd_file*) psplay_find (&base->files, &line[i->sz]);
 
       if (!self->file)
@@ -210,6 +210,7 @@ rxpd_connection_parse_cmd (void* ptr)
               rxpd_buffer_printf (&self->out, "#ERROR: illegal filename\n");
               goto end;
             }
+          rxpd_file_load (self->file);
         }
     }