diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-11-30 22:22:14 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-11-30 22:22:14 +0000 |
commit | 95370659256b7fd32da2510292b36552614c7ad9 (patch) | |
tree | 9ea5fd7323af7ae0ae0e9faaf7151a6a861d0aea /src/modules/m_spanningtree.cpp | |
parent | 120fab9212eb73276ed04d4cb184e8a35fde8499 (diff) |
Typecasting fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2073 e03df62e-2008-0410-955e-edbf42e46eb7
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); } } } |