summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-10 22:18:56 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-10 22:18:56 +0000
commit21ec94afe38878f0efdf1df3ad5a9f724d5cf3e0 (patch)
treee1f00860a8caff01b05a1e4acd58dfd0eea403bf /src/modules.cpp
parent719f60cfc641d85c2cd41598bdff209400ab1fab (diff)
Fugly code band-aid^H^H^H^H^Hfix
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4315 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 282e856c4..3ec932980 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -942,7 +942,7 @@ std::string FileReader::Contents()
std::string x = "";
for (file_cache::iterator a = this->fc.begin(); a != this->fc.end(); a++)
{
- x.append((std::string*)(*a));
+ x.append(a->c_str());
x.append("\r\n");
}
return x;
@@ -952,7 +952,7 @@ unsigned long FileReader::ContentSize()
{
unsigned long n = 0;
for (file_cache::iterator a = this->fc.begin(); a != this->fc.end(); a++)
- n += (((std::string*)(*a))->length() + 2);
+ n += (a->length() + 2);
return n;
}