diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-03 22:40:10 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-03 22:40:10 +0000 |
commit | ca549070d974b45ae586e10b74acc6e390741ae9 (patch) | |
tree | 4db7715a809421547ef61dea086528fc5f43cb58 /src/modules/m_cban.cpp | |
parent | 93188e6f716d77c7e2162d086e230c73c77292f8 (diff) |
Add operators >> and << for irc::string and i/ostreams. m_cban utilises this
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3066 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_cban.cpp')
-rw-r--r-- | src/modules/m_cban.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp index 8739fc98c..df0bd1d4d 100644 --- a/src/modules/m_cban.cpp +++ b/src/modules/m_cban.cpp @@ -199,7 +199,7 @@ class ModuleCBan : public Module virtual Version GetVersion() { - return Version(1,0,0,0,VF_VENDOR); + return Version(1,0,0,1,VF_VENDOR); } }; @@ -214,14 +214,11 @@ CBan DecodeCBan(const std::string &data) { CBan res; std::istringstream stream; - // XXX - Change this...we shouldn't need tempname, need an overloaded iostream operator on irc::string? - std::string tempname; - stream >> tempname; + stream >> res.chname; stream >> res.set_by; stream >> res.set_on; stream >> res.length; res.reason = stream.str(); - res.chname = tempname.c_str(); return res; } |