Accidentally merged the configdb branch into master. Reverting.
[citadel.git] / citadel / modules / eventclient / serv_eventclient.c
index 22a715615c6ffac6aa32629eb857b657f5fa60ba..f7e286a9ab14cf6188f352b52ac036224df99982 100644 (file)
@@ -1,13 +1,19 @@
 /*
- * Copyright (c) 1998-2015 by the citadel.org team
+ * Copyright (c) 1998-2012 by the citadel.org team
  *
- * This program is open source software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 3.
+ *  This program is open source software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License version 3.
+ *  
+ *  
  *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  
+ *  
+ *  
  */
 
 #include "sysdep.h"
@@ -47,8 +53,9 @@
 #include "server.h"
 #include "citserver.h"
 #include "support.h"
+
 #include "ctdl_module.h"
-#include "config.h"
+
 #include "event_client.h"
 #include "serv_curl.h"
 
@@ -470,13 +477,13 @@ int evcurl_init(AsyncIO *IO)
        OPT(WRITEDATA, (void *)IO);
        OPT(ERRORBUFFER, IO->HttpReq.errdesc);
 
-       if ((!IsEmptyStr(CtdlGetConfigStr("c_ip_addr")))
-               && (strcmp(CtdlGetConfigStr("c_ip_addr"), "*"))
-               && (strcmp(CtdlGetConfigStr("c_ip_addr"), "::"))
-               && (strcmp(CtdlGetConfigStr("c_ip_addr"), "0.0.0.0"))
+       if ((!IsEmptyStr(config.c_ip_addr))
+               && (strcmp(config.c_ip_addr, "*"))
+               && (strcmp(config.c_ip_addr, "::"))
+               && (strcmp(config.c_ip_addr, "0.0.0.0"))
                )
        {
-               OPT(INTERFACE, CtdlGetConfigStr("c_ip_addr"));
+               OPT(INTERFACE, config.c_ip_addr);
        }
 
 #ifdef CURLOPT_HTTP_CONTENT_DECODING