diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-03-18 17:00:23 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-03-18 17:00:23 +0000 |
commit | 54b0eba65d820cde339efc63c56f6601ae4bb7f7 (patch) | |
tree | fb687d37c7d28e184cb853afb4b25ce8a9be2d05 /src | |
parent | 0f6de0b18372a76ebb5d6c4ba3dc9a7a7e0a7297 (diff) |
Change back to FMODE for channel mode changes from users
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6691 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree/main.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index f286ae104..4fa165d10 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -1090,22 +1090,25 @@ void ModuleSpanningTree::OnMode(userrec* user, void* dest, int target_type, cons { if ((IS_LOCAL(user)) && (user->registered == REG_ALL)) { + std::deque<std::string> params; + std::string command; + if (target_type == TYPE_USER) { userrec* u = (userrec*)dest; - std::deque<std::string> params; params.push_back(u->nick); params.push_back(text); - Utils->DoOneToMany(user->nick,"MODE",params); + command = "MODE"; } else { chanrec* c = (chanrec*)dest; - std::deque<std::string> params; params.push_back(c->name); + params.push_back(ConvToStr(c->age)); params.push_back(text); - Utils->DoOneToMany(user->nick,"MODE",params); + command = "FMODE"; } + Utils->DoOneToMany(user->nick, command, params); } } |