diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-27 02:30:36 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-27 02:30:36 +0000 |
commit | 968ce52c0dfd412e2b394e09c13590cab4aafd40 (patch) | |
tree | a606f8ac512927114ff61c6a6d87e0b21fc003a9 | |
parent | 89161fbd869aa423163bc18c2eb7c6ec2a581b9c (diff) |
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
-rw-r--r-- | src/modules/m_spanningtree.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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); |