summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-08 21:18:53 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-08 21:18:53 +0000
commit063255dd3cc046c00e961e2506082222a0e3e7cc (patch)
treeb6c01f9aa1fcf018563a2ff7f09b189e59c0cd1a /src/modules/m_spanningtree.cpp
parent592c0da40e4efeb2f6b6414726f45dd4fb80cd8e (diff)
Added code to prevent sending of FMODE and FHOST before connect is complete (done usually by m_cloaking)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2283 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r--src/modules/m_spanningtree.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 6b4791894..edc5fa16e 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -2524,6 +2524,8 @@ class ModuleSpanningTree : public Module
virtual void OnChangeHost(userrec* user, std::string newhost)
{
// only occurs for local clients
+ if (user->registered != 7)
+ return;
std::deque<std::string> params;
params.push_back(newhost);
DoOneToMany(user->nick,"FHOST",params);
@@ -2532,6 +2534,8 @@ class ModuleSpanningTree : public Module
virtual void OnChangeName(userrec* user, std::string gecos)
{
// only occurs for local clients
+ if (user->registered != 7)
+ return;
std::deque<std::string> params;
params.push_back(gecos);
DoOneToMany(user->nick,"FNAME",params);
@@ -2568,7 +2572,7 @@ class ModuleSpanningTree : public Module
virtual void OnUserQuit(userrec* user, std::string reason)
{
- if (std::string(user->server) == Srv->GetServerName())
+ if ((std::string(user->server) == Srv->GetServerName()) && (user->registered == 7))
{
std::deque<std::string> params;
params.push_back(":"+reason);
@@ -2704,7 +2708,7 @@ class ModuleSpanningTree : public Module
virtual void OnMode(userrec* user, void* dest, int target_type, std::string text)
{
- if (std::string(user->server) == Srv->GetServerName())
+ if ((std::string(user->server) == Srv->GetServerName()) && (user->registered == 7))
{
if (target_type == TYPE_USER)
{