]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_remoteinclude_http.cpp
Add comments
[user/henk/code/inspircd.git] / src / modules / m_remoteinclude_http.cpp
index 05046fc6af92a292b141bca47cd9db6828705c3c..d55b4a251aa7ff9d0692fcdb2218ba19f4f21e7d 100644 (file)
@@ -2,7 +2,7 @@
  *        | Inspire Internet Relay Chat Daemon |
  *        +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
@@ -37,6 +37,9 @@ class ModuleRemoteIncludeHttp : public Module
 
        virtual int OnDownloadFile(const std::string &filename, std::istream* &filedata)
        {
+#ifdef WIN32
+               return 0;
+#else
                std::stringstream* gotfile = (std::stringstream*)filedata;
                ServerInstance->Log(DEBUG,"OnDownloadFile in m_remoteinclude_http");
                int sockfd, portno, n;
@@ -105,6 +108,7 @@ class ModuleRemoteIncludeHttp : public Module
                ServerInstance->Log(DEBUG,"Result: %s", result.c_str());
 
                return (result == "200");
+#endif
        }
 
        int SockSend(int sock, const std::string &data)