From 968ce52c0dfd412e2b394e09c13590cab4aafd40 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 27 Aug 2006 02:30:36 +0000 Subject: I only fix stuff at 3:30am if im asked nicely and now im too tired to think any more :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5030 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 5266d8240..01ff49b87 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1378,16 +1378,16 @@ class TreeSocket : public InspSocket ServerInstance->Log(DEBUG,"FJOIN detected, our TS=%lu, their TS=%lu",ourTS,TS); irc::tokenstream users(params[2]); - std::string item = ""; + std::string item = "*"; /* do this first, so our mode reversals are correctly received by other servers * if there is a TS collision. */ params[2] = ":" + params[2]; DoOneToAllButSender(source,"FJOIN",params,source); - - while ((item = users.GetToken()) != "") + while (item != "") { + item = users.GetToken(); /* process one channel at a time, applying modes. */ char* usr = (char*)item.c_str(); /* Safety check just to make sure someones not sent us an FJOIN full of spaces @@ -1412,7 +1412,7 @@ class TreeSocket : public InspSocket usr++; permissions++; } - who = this->Instance->FindNick(usr); + who = this->Instance->FindNick(++usr); if (who) { chanrec::JoinUser(this->Instance, who, channel.c_str(), true, key); -- cgit v1.2.3