diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-07-04 21:19:49 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-10-03 00:30:01 +0200 |
commit | f1b04d0ef846713b38f9190a9f34a0c42bfa01cc (patch) | |
tree | 60cefec3b0a9669437e41a8ab5a1c8e00a6e3e08 /src/modules | |
parent | 90046d44987b20f42d689a8b046b0d3e8d2454af (diff) |
m_spanningtree OPERTYPE handler: Return when finished processing instead of changing execution path with a flag
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_spanningtree/opertype.cpp | 11 |
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; } |