diff options
| author | 2007-11-11 23:49:03 +0000 | |
|---|---|---|
| committer | 2007-11-11 23:49:03 +0000 | |
| commit | bedbe6480de4af64c0e752bc5ed09d0d7a9aa72c (patch) | |
| tree | 281e7e2af14c04c1591d1312557cb57084aac16a /src/modules/m_remoteinclude.cpp | |
| parent | Currently crashes with multiple layers of include. don't use this yet (diff) | |
| download | inspircd++-bedbe6480de4af64c0e752bc5ed09d0d7a9aa72c.tar.gz inspircd++-bedbe6480de4af64c0e752bc5ed09d0d7a9aa72c.tar.bz2 inspircd++-bedbe6480de4af64c0e752bc5ed09d0d7a9aa72c.zip | |
This works with multiple remote includes now except it hangs when an include is within an include
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8590 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_remoteinclude.cpp')
| -rw-r--r-- | src/modules/m_remoteinclude.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/m_remoteinclude.cpp b/src/modules/m_remoteinclude.cpp index 3ad9b7ef2..d385e194e 100644 --- a/src/modules/m_remoteinclude.cpp +++ b/src/modules/m_remoteinclude.cpp @@ -94,8 +94,10 @@ class ModuleRemoteInclude : public Module { ServerInstance->Log(DEBUG,"Claiming schema http://, making fetch request"); - HTTPClientRequest req(ServerInstance, this, target, name); - req.Send(); + HTTPClientRequest* req = new HTTPClientRequest(ServerInstance, this, target, name); + req->Send(); + + /* XXX: We should delete req when the request is complete */ assoc[name] = new std::stringstream(); delete filedata; |
