diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_cban.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp index df0bd1d4d..cd8ad2283 100644 --- a/src/modules/m_cban.cpp +++ b/src/modules/m_cban.cpp @@ -206,14 +206,14 @@ class ModuleCBan : public Module std::string EncodeCBan(const CBan &ban) { std::ostringstream stream; - stream << ban.chname.c_str() << " " << ban.set_by << " " << ban.set_on << " " << ban.length << " " << ban.reason; + stream << ban.chname << " " << ban.set_by << " " << ban.set_on << " " << ban.length << " " << ban.reason; return stream.str(); } CBan DecodeCBan(const std::string &data) { CBan res; - std::istringstream stream; + std::istringstream stream(data); stream >> res.chname; stream >> res.set_by; stream >> res.set_on; |