From 95370659256b7fd32da2510292b36552614c7ad9 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 30 Nov 2005 22:22:14 +0000 Subject: Typecasting fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2073 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 6 +++--- 1 file 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); } } } -- cgit v1.2.3