diff options
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 5cc602efa..f98edbd3c 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1647,12 +1647,12 @@ class ModuleSpanningTree : public Module if (target_type == TYPE_USER) { userrec* u = (userrec*)target; - opaque->WriteLine(":"+opaque->GetName()+" FMODE "+u->nick+" "+modeline); + opaque->WriteLine(":"+s->GetName()+" FMODE "+u->nick+" "+modeline); } - else (target_type == TYPE_CHANNEL) + else { chanrec* c = (chanrec*)target; - opaque->WriteLine(":"+opaque->GetName()+" FMODE "+c->name+" "+modeline); + opaque->WriteLine(":"+s->GetName()+" FMODE "+c->name+" "+modeline); } } } |