summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-10-21 18:01:51 -0400
committerAdam <Adam@anope.org>2011-10-21 18:01:51 -0400
commit6ce9010324f7394fc31eba8a3fc938c03b134025 (patch)
treed58502e76f1ca320cd8cd0be78e9349db78a36e9 /include
parentd0afc8c50992ae4a8e03bdbd0b8c0b543db353e0 (diff)
Fixed extracting multiple words from our serializable stringstream
Diffstat (limited to 'include')
-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;