summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/configreader.cpp2
-rw-r--r--src/modules.cpp2
2 files changed, 2 insertions, 2 deletions
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*) { }