From 090e691462bbe60c72c734f454f6d1e20c41a4e8 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 29 Nov 2005 15:37:04 +0000 Subject: Added reason to OnUserQuit git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2007 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/modules/m_spanningtree.cpp') 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 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; -- cgit v1.2.3