summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_spanningtree.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 4e3d4cc1e..a064aa7d0 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -3007,10 +3007,10 @@ class ModuleSpanningTree : public Module
{
if (user->fd > -1)
{
+ chanrec *c = (chanrec*)dest;
std::string cname = c->name;
if (status)
cname = status + cname;
- chanrec *c = (chanrec*)dest;
std::deque<TreeServer*> list;
GetListOfServersForChannel(c,list);
unsigned int ucount = list.size();
@@ -3044,10 +3044,10 @@ class ModuleSpanningTree : public Module
{
if (user->fd > -1)
{
+ chanrec *c = (chanrec*)dest;
std::string cname = c->name;
if (status)
cname = status + cname;
- chanrec *c = (chanrec*)dest;
std::deque<TreeServer*> list;
GetListOfServersForChannel(c,list);
unsigned int ucount = list.size();