diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-06 11:19:06 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-06 11:19:06 +0000 |
commit | c25f5a3ef66c7b1ab5a7ac60fa7b5abd796587bb (patch) | |
tree | fa72b40ded3023f61e8ec232d0a1735bdc237809 /src/modules/m_spanningtree.cpp | |
parent | cf0f30eea382eb7fde4dbfc08402c5b5c643cdbb (diff) |
Drop and log unknown nicks in FJOIN, rather than aborting the link
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5147 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 679dc00df..d980cba21 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1636,11 +1636,8 @@ class TreeSocket : public InspSocket } else { - for (unsigned int f = 2; f < modectr; f++) - free(mode_users[f]); - - this->WriteLine("ERROR :Invalid user '"+std::string(usr)+"' in FJOIN to '"+channel+"'"); - return false; + ServerInstance->Log(SPARSE,"Warning! Invalid user %s in FJOIN to channel %s IGNORED", who->nick, channel.c_str()); + continue; } } } @@ -1682,26 +1679,6 @@ class TreeSocket : public InspSocket return true; } - bool SyncChannelTS(std::string source, std::deque<std::string> ¶ms) - { - if (params.size() >= 2) - { - chanrec* c = this->Instance->FindChan(params[0]); - if (c) - { - time_t theirTS = atoi(params[1].c_str()); - time_t ourTS = c->age; - if (ourTS >= theirTS) - { - ServerInstance->Log(DEBUG,"Updating timestamp for %s, our timestamp was %lu and theirs is %lu",c->name,ourTS,theirTS); - c->age = theirTS; - } - } - } - DoOneToAllButSender(this->Instance->Config->ServerName,"SYNCTS",params,source); - return true; - } - /* NICK command */ bool IntroduceClient(std::string source, std::deque<std::string> ¶ms) { |