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.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index cd35e824d..8e0812bd7 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -1312,6 +1312,26 @@ class ModuleSpanningTree : public Module
}
}
+ virtual void OnUserConnect(userrec* user)
+ {
+ if (std::string(user->server) == Srv->GetServerName())
+ {
+ log(DEBUG,"**** User on %s CONNECTS: %s",user->server,user->nick);
+ std::deque<std::string> params;
+ sprintf(agestr,"%d",user->age);
+ params.clear();
+ params.push_back(agestr);
+ params.push_back(user->nick);
+ params.push_back(user->host);
+ params.push_back(user->dhost);
+ params.push_back(user->ident);
+ params.push_back("+"+std::string(user->modes))
+ params.push_back(user->ip);
+ params.push_back(":"+std::string(user->fullname))
+ DoOneToMany(Srv->GetServerName(),"NICK",params);
+ }
+ }
+
virtual ~ModuleSpanningTree()
{
delete Srv;