]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/opserv.c
oops, broke unsetting the title. fix here
[irc/evilnet/x3.git] / src / opserv.c
index a481651f2113b37e756ca1963005cd0c752b208d..3481b48c50d5ded90e0a332051939615b5190b33 100644 (file)
@@ -2435,30 +2435,6 @@ free_routing_plan(void *data)
     free(rp);
 }
 
-/* ************************************************************************
- * Auto Routing Plans
- * ************************************************************************
- *
- * XXX: routing plan TODO work
- *
- * DONE 
- *      - read from .db into opserv_routing_plans. format:
- *      - write back to .db
- *      - show (stats routingplans?)
- *      - cmd_routing_addplan
- *      - cmd_routing_delplan
- *      - cmd_routing_addserver
- *      - cmd_routing_delserver
- *      - cmd_routing_set
- *      - cmd_reroute ( c / n / t )
- *      - routing map
- * TODO 
- *      - timer after attempting a connect, 
- *        to see if it timed out.
- * ************************************************************************
- */
-
-
 /*************************************************
 * Functions to handle the active routing struct */
 
@@ -2803,8 +2779,8 @@ routing_connect_one(struct route *route, char *server)
             return 0; /* its uplink isnt here to link to */
         }
     }
-    log_module(MAIN_LOG, LOG_ERROR, "Tried to link %s but its not in the active routing struct!", server);
-    return 0; /* server wasnt found in active route struct ?! */
+    log_module(MAIN_LOG, LOG_DEBUG, "Tried to link %s but its not in the active routing struct!", server);
+    return 0; /* server wasnt found in active route struct. */
 }
 
 int routing_connect_children(struct route *route, char *server)
@@ -3136,6 +3112,9 @@ routing_handle_connect_failure(struct server *source, char *server, char *messag
                 activate_routing(NULL, NULL, NULL);
                 /* attempt to link it again. */
                 routing_connect_one(opserv_route, server); 
+                /* TODO: reconnect any missing servers who
+                 * normally connect to server, using their backups.
+                 * Probably should just issue a reroute C here. */
             }
         }
     }