]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/tcpclient.cpp
Added a new config file directive for binding to a local address, updated dependencie...
[irc/gameservirc.git] / gameserv / tcpclient.cpp
index d0ae5f0a1f29416976330d57724772987cc054cd..bc9941dc13a06447c1e35c416027bebe676940f3 100644 (file)
@@ -106,6 +106,17 @@ int main(int argc, char *argv[])
       goto end;
     }
 
+  if (load_store() == 0)
+    {
+      log("Error loading store");
+      goto end;
+    }
+  if (load_tavern() == 0)
+    {
+      log("Error loading tavern");
+      goto end;
+    }
+
   load_gs_dbase();
   loadNews(newsdata, todaysnews);
 
@@ -165,7 +176,8 @@ int main(int argc, char *argv[])
     bool loaded = false;
 
     ignore_pipe();
-    sock = make_connection(remoteport, SOCK_STREAM, remoteserver);
+    sock = conn(remoteserver, remoteport, localhost, 0);
+    //    sock = make_connection(remoteport, SOCK_STREAM, remoteserver);
     if (sock == -1) {
        fprintf(stderr,"make_connection failed.\n");
     unload_config_file();