summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-29 15:37:04 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-29 15:37:04 +0000
commit090e691462bbe60c72c734f454f6d1e20c41a4e8 (patch)
treef5e60b4b9898da5b8ece7946738d85800f4489b0 /src/modules/m_spanningtree.cpp
parent35ac0e70f91f17f6d150fa99819f4bc88071d9c6 (diff)
Added reason to OnUserQuit
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2007 e03df62e-2008-0410-955e-edbf42e46eb7
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;