From deb85740798d3438563628736c0e83edb6966b6e Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 23 Aug 2007 18:06:26 +0000 Subject: Add some stuff to change how we process a token sepeperated stream git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7800 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/channels.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/channels.cpp') diff --git a/src/channels.cpp b/src/channels.cpp index bd8a9719c..83f18abee 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -175,8 +175,11 @@ CUList* chanrec::GetVoicedUsers() void chanrec::SetDefaultModes() { irc::spacesepstream list(ServerInstance->Config->DefaultModes); - std::string modeseq = list.GetToken(); + std::string modeseq; std::string parameter; + + list.GetToken(modeseq); + userrec* dummyuser = new userrec(ServerInstance); dummyuser->SetFd(FD_MAGIC_NUMBER); @@ -186,7 +189,7 @@ void chanrec::SetDefaultModes() if (mode) { if (mode->GetNumParams(true)) - parameter = list.GetToken().c_str(); + list.GetToken(parameter); else parameter.clear(); -- cgit v1.2.3