updates
authorPekka Riikonen <priikone@silcnet.org>
Fri, 10 Aug 2001 19:37:56 +0000 (19:37 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Fri, 10 Aug 2001 19:37:56 +0000 (19:37 +0000)
apps/silcd/server.c
scripts/silcdoc/silcdoc
util/robodoc/Source/generator.c

index 7873aff855dc526b5a3b2d83ac86de52796849f3..c4f9f48f1621218603b7ca62471300011364fae7 100644 (file)
@@ -3922,6 +3922,9 @@ SilcClientEntry silc_server_get_client_resolve(SilcServer server,
   if (!client && server->standalone)
     return NULL;
 
+  if (!client->data.registered)
+    return NULL;
+
   if (!client || !client->nickname || !client->username) {
     SilcBuffer buffer, idp;
 
index 382b12321f0674ecc96bbe93b11fc95e9ccb407c..ebf885cfab66204f887db830472c21ecd7a0e5bb 100755 (executable)
@@ -55,14 +55,15 @@ if [ "$TYPE" = "HTML" ]; then
     sh gen.sh index.php $DST/$i.html $DST/$i.html
 
     # Generate the details and the layour
-    files=`find $DST -name "$i*_*.html"`
+    files=`find $DST -name ""$i"_*.html"`
     for k in $files
     do
       sh gen.sh gen_detail.php $k $k
       sh gen.sh index.php $k $k
     done
+
+    rm -f $DST/$i_index.tmpl
   done
 
   rm -rf /tmp/silcdoc.html
-  rm -f $DST/tmp.php
 fi
index 9e3d5825f8bc03283ae844bf3ace0a713e5093cc..70c4c8c7066a5a318387c41b0c3ea91cc2fc39a5 100644 (file)
@@ -286,7 +286,7 @@ RB_Generate_Doc_Start (
            {
              char fname[256];
 
-             sprintf(fname, "%s_%s.html", doc_base
+             sprintf(fname, "%s_%s.html", RB_FilePart(doc_base)
                      cur_header->function_name);
 
              if (cur_header->name && cur_header->function_name)
@@ -1277,7 +1277,8 @@ RB_Generate_Item_Body (FILE * dest_doc, char *dest_name,
                                   label_name, label_name);
 #endif
                          fprintf (dest_doc, "<A HREF=\"%s_%s.html\">%s</A>",
-                                  doc_base, label_name, label_name);
+                                  RB_FilePart(doc_base), label_name, 
+                                              label_name);
                        }
                      else
                        {