]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fixed bug where half-registered users would be propogated if they were half connected...
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 30 Nov 2005 21:22:13 +0000 (21:22 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 30 Nov 2005 21:22:13 +0000 (21:22 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2068 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_spanningtree.cpp

index 00805e1aaef5d9a9fcf4519a4d6cf0dd312d3af8..124ae0be7a6c1a64701d1ecffc4065ad3b8c96fc 100644 (file)
@@ -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));
+                               }
                        }
                }
        }