summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r--src/modules/m_spanningtree.cpp21
1 files changed, 12 insertions, 9 deletions
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));
+ }
}
}
}