diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-11 19:24:30 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-11 19:24:30 +0000 |
commit | 64087572950e3331029922626fa8605273c27da3 (patch) | |
tree | 957128fe37271863242fc9f90d3162e2e99267cc | |
parent | 621f93b72ffdae4e211949c9fad778327c2a31fa (diff) |
More stuff incoming
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8575 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | include/modules.h | 2 | ||||
-rw-r--r-- | src/configreader.cpp | 2 | ||||
-rw-r--r-- | src/modules.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/modules.h b/include/modules.h index 11d194cd8..e40b1d31b 100644 --- a/include/modules.h +++ b/include/modules.h @@ -438,7 +438,7 @@ class CoreExport Module : public Extensible virtual void OnReadConfig(ServerConfig* config, ConfigReader* coreconf); - virtual int OnDownloadFile(const std::string &filename, std::istringstream* &filedata); + virtual int OnDownloadFile(const std::string &filename, std::istream* &filedata); /** Returns the version number of a Module. * The method should return a Version object with its version information assigned via diff --git a/src/configreader.cpp b/src/configreader.cpp index ec5f1fe54..7b033a64b 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -1297,7 +1297,7 @@ void ServerConfig::StartDownloads() /* For now, error it */ int MOD_RESULT = 0; - FOREACH_RESULT(I_OnDownloadFile, OnDownloadFile(file, reinterpret_cast<std::istringstream*>(x->second))); + FOREACH_RESULT(I_OnDownloadFile, OnDownloadFile(file, x->second)); if (MOD_RESULT == 0) { /* No module claimed this file */ diff --git a/src/modules.cpp b/src/modules.cpp index 373f1c7b8..6fecc1f50 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -107,7 +107,7 @@ std::string Event::GetEventID() Module::Module(InspIRCd* Me) : ServerInstance(Me) { } Module::~Module() { } void Module::OnReadConfig(ServerConfig*, ConfigReader*) { } -int Module::OnDownloadFile(const std::string&, std::istringstream*&) { return 0; } +int Module::OnDownloadFile(const std::string&, std::istream*&) { return 0; } void Module::OnUserConnect(User*) { } void Module::OnUserQuit(User*, const std::string&, const std::string&) { } void Module::OnUserDisconnect(User*) { } |