diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-05 09:53:08 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-05 09:53:08 +0000 |
commit | 8c1b599dd3e1c224216fdfe5dc74100c4f4265df (patch) | |
tree | e94bf15c91da778b982914be9aaa1a9265f60fd9 /src/modules | |
parent | 2f1e456630bb01373ca0a1c3b707ef09334e7226 (diff) |
Bug in code for syncing cbans
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3090 e03df62e-2008-0410-955e-edbf42e46eb7
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; |