From f1b04d0ef846713b38f9190a9f34a0c42bfa01cc Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Wed, 4 Jul 2012 21:19:49 +0200 Subject: m_spanningtree OPERTYPE handler: Return when finished processing instead of changing execution path with a flag --- src/modules/m_spanningtree/opertype.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/modules/m_spanningtree/opertype.cpp b/src/modules/m_spanningtree/opertype.cpp index 41d57c58a..97a4de8c2 100644 --- a/src/modules/m_spanningtree/opertype.cpp +++ b/src/modules/m_spanningtree/opertype.cpp @@ -42,23 +42,18 @@ CmdResult CommandOpertype::Handle(const std::vector& params, User * u->oper->name = opertype; } - TreeServer* remoteserver = Utils->FindServer(u->server); - bool dosend = true; - if (Utils->quiet_bursts) { /* * If quiet bursts are enabled, and server is bursting or silent uline (i.e. services), * then do nothing. -- w00t */ + TreeServer* remoteserver = Utils->FindServer(u->server); if (remoteserver->bursting || ServerInstance->SilentULine(u->server)) - { - dosend = false; - } + return CMD_SUCCESS; } - if (dosend) - ServerInstance->SNO->WriteToSnoMask('O',"From %s: User %s (%s@%s) is now an IRC operator of type %s",u->server.c_str(), u->nick.c_str(),u->ident.c_str(), u->host.c_str(), irc::Spacify(opertype.c_str())); + ServerInstance->SNO->WriteToSnoMask('O',"From %s: User %s (%s@%s) is now an IRC operator of type %s",u->server.c_str(), u->nick.c_str(),u->ident.c_str(), u->host.c_str(), irc::Spacify(opertype.c_str())); return CMD_SUCCESS; } -- cgit v1.2.3