summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_spanningtree.cpp26
1 files changed, 16 insertions, 10 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 8901c4353..44ee04bfd 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -3489,11 +3489,14 @@ class ModuleSpanningTree : public Module
}
else if (target_type == TYPE_SERVER)
{
- char* target = (char*)dest;
- std::deque<std::string> par;
- par.push_back(target);
- par.push_back(":"+text);
- DoOneToMany(user->nick,"NOTICE",par);
+ if (user->fd > -1)
+ {
+ char* target = (char*)dest;
+ std::deque<std::string> par;
+ par.push_back(target);
+ par.push_back(":"+text);
+ DoOneToMany(user->nick,"NOTICE",par);
+ }
}
}
@@ -3534,11 +3537,14 @@ class ModuleSpanningTree : public Module
}
else if (target_type == TYPE_SERVER)
{
- char* target = (char*)dest;
- std::deque<std::string> par;
- par.push_back(target);
- par.push_back(":"+text);
- DoOneToMany(user->nick,"PRIVMSG",par);
+ if (user->fd > -1)
+ {
+ char* target = (char*)dest;
+ std::deque<std::string> par;
+ par.push_back(target);
+ par.push_back(":"+text);
+ DoOneToMany(user->nick,"PRIVMSG",par);
+ }
}
}