summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-07-04 21:19:49 +0200
committerattilamolnar <attilamolnar@hush.com>2012-10-03 00:30:01 +0200
commitf1b04d0ef846713b38f9190a9f34a0c42bfa01cc (patch)
tree60cefec3b0a9669437e41a8ab5a1c8e00a6e3e08
parent90046d44987b20f42d689a8b046b0d3e8d2454af (diff)
m_spanningtree OPERTYPE handler: Return when finished processing instead of changing execution path with a flag
-rw-r--r--src/modules/m_spanningtree/opertype.cpp11
1 files 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<std::string>& 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;
}