From: brain Date: Wed, 30 Nov 2005 21:22:13 +0000 (+0000) Subject: Fixed bug where half-registered users would be propogated if they were half connected... X-Git-Tag: v2.0.23~9956 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=1b6bcd432ac77865e14a8046f0a4b29eeaa2bcd8;p=user%2Fhenk%2Fcode%2Finspircd.git Fixed bug where half-registered users would be propogated if they were half connected during sync git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2068 e03df62e-2008-0410-955e-edbf42e46eb7 --- diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 00805e1aa..124ae0be7 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -613,16 +613,19 @@ class TreeSocket : public InspSocket char data[MAXBUF]; for (user_hash::iterator u = clientlist.begin(); u != clientlist.end(); u++) { - snprintf(data,MAXBUF,":%s NICK %lu %s %s %s %s +%s %s :%s",u->second->server,(unsigned long)u->second->age,u->second->nick,u->second->host,u->second->dhost,u->second->ident,u->second->modes,u->second->ip,u->second->fullname); - this->WriteLine(data); - if (strchr(u->second->modes,'o')) - { - this->WriteLine(":"+std::string(u->second->nick)+" OPERTYPE "+std::string(u->second->oper)); - } - char* chl = chlist(u->second,u->second); - if (*chl) + if (u->second->registered == 7) { - this->WriteLine(":"+std::string(u->second->nick)+" FJOIN "+std::string(chl)); + snprintf(data,MAXBUF,":%s NICK %lu %s %s %s %s +%s %s :%s",u->second->server,(unsigned long)u->second->age,u->second->nick,u->second->host,u->second->dhost,u->second->ident,u->second->modes,u->second->ip,u->second->fullname); + this->WriteLine(data); + if (strchr(u->second->modes,'o')) + { + this->WriteLine(":"+std::string(u->second->nick)+" OPERTYPE "+std::string(u->second->oper)); + } + char* chl = chlist(u->second,u->second); + if (*chl) + { + this->WriteLine(":"+std::string(u->second->nick)+" FJOIN "+std::string(chl)); + } } } }