diff options
author | Adam <Adam@anope.org> | 2011-10-21 18:01:51 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-10-21 18:01:51 -0400 |
commit | 6ce9010324f7394fc31eba8a3fc938c03b134025 (patch) | |
tree | d58502e76f1ca320cd8cd0be78e9349db78a36e9 /include | |
parent | d0afc8c50992ae4a8e03bdbd0b8c0b543db353e0 (diff) |
Fixed extracting multiple words from our serializable stringstream
Diffstat (limited to 'include')
-rw-r--r-- | include/serialize.h | 6 |
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; |