summaryrefslogtreecommitdiff
path: root/include/serialize.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/serialize.h')
-rw-r--r--include/serialize.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/serialize.h b/include/serialize.h
index ff818a61b..76b5e43aa 100644
--- a/include/serialize.h
+++ b/include/serialize.h
@@ -26,7 +26,11 @@ namespace Serialize
is >> val;
return *this;
}
- std::istream &operator>>(Anope::string &val) { return *this >> val.str(); }
+ std::istream &operator>>(Anope::string &val)
+ {
+ val = this->str();
+ return *this;
+ }
stringstream &setType(DataType t)
{
this->type = t;