From 0d67e5e75b37d4764eba2e4e026d62dcefeccad3 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Tue, 9 Feb 2010 15:14:57 -0600 Subject: Remove duplicate mode sending on processed modes --- src/modules/m_spanningtree/main.cpp | 36 +----------------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) (limited to 'src/modules/m_spanningtree/main.cpp') diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index c6ea6781e..50d088319 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -67,7 +67,7 @@ void ModuleSpanningTree::init() I_OnWallops, I_OnUserNotice, I_OnUserMessage, I_OnBackgroundTimer, I_OnUserJoin, I_OnChangeHost, I_OnChangeName, I_OnChangeIdent, I_OnUserPart, I_OnUnloadModule, I_OnUserQuit, I_OnUserPostNick, I_OnUserKick, I_OnRemoteKill, I_OnRehash, I_OnPreRehash, - I_OnOper, I_OnAddLine, I_OnDelLine, I_OnMode, I_OnLoadModule, I_OnStats, + I_OnOper, I_OnAddLine, I_OnDelLine, I_OnLoadModule, I_OnStats, I_OnSetAway, I_OnPostCommand, I_OnUserConnect, I_OnAcceptConnection }; ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); @@ -850,40 +850,6 @@ void ModuleSpanningTree::OnDelLine(User* user, XLine *x) } } -void ModuleSpanningTree::OnMode(User* user, Extensible* dest, const irc::modestacker& modesc) -{ - irc::modestacker modes(modesc); - if ((IS_LOCAL(user)) && (user->registered == REG_ALL)) - { - parameterlist params; - int id; - std::string command; - - User* u = dynamic_cast(dest); - if (u) - { - params.push_back(u->uuid); - id = 1; - command = "MODE"; - } - else - { - Channel* c = (Channel*)dest; - params.push_back(c->name); - params.push_back(ConvToStr(c->age)); - id = 2; - command = "FMODE"; - } - params.push_back(""); - - while (!modes.empty()) - { - params[id] = modes.popModeLine(true); - Utils->DoOneToMany(user->uuid, command, params); - } - } -} - ModResult ModuleSpanningTree::OnSetAway(User* user, const std::string &awaymsg) { if (IS_LOCAL(user)) -- cgit v1.3.1-10-gc9f91