From 8c1b599dd3e1c224216fdfe5dc74100c4f4265df Mon Sep 17 00:00:00 2001 From: om Date: Sun, 5 Feb 2006 09:53:08 +0000 Subject: Bug in code for syncing cbans git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3090 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_cban.cpp | 4 ++-- 1 file 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; -- cgit v1.2.3