diff options
| author | Adam <Adam@anope.org> | 2014-06-25 11:02:19 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2014-06-25 11:02:19 -0400 |
| commit | ee3289029d61da12013e0f5a3e4faf2d07543a0e (patch) | |
| tree | df7391c321a913fc56db2d075292c0a6ddb0536d /modules/commands/os_akill.cpp | |
| parent | fd9bb0ea7e3c8a39f1632c2ebbdc25d0fac192a0 (diff) | |
Remove the rest of the 1.8 logic "let's write all of the command handler with no return statement!"
Fix if (something) else if (!something) tests
Remove returns at the bottom of void functions
Diffstat (limited to 'modules/commands/os_akill.cpp')
| -rw-r--r-- | modules/commands/os_akill.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/commands/os_akill.cpp b/modules/commands/os_akill.cpp index d5b9b6e70..5dad0ece9 100644 --- a/modules/commands/os_akill.cpp +++ b/modules/commands/os_akill.cpp @@ -146,12 +146,14 @@ class CommandOSAKill : public Command if (!akills->CanAdd(source, mask, expires, reason)) return; - else if (mask.find_first_not_of("/~@.*?") == Anope::string::npos) + + if (mask.find_first_not_of("/~@.*?") == Anope::string::npos) { source.Reply(_("\002{0}\002 coverage is too wide; Please use a more specific mask."), mask); return; } - else if (mask.find('@') == Anope::string::npos) + + if (mask.find('@') == Anope::string::npos) { source.Reply(_("Mask must be in the form \037user\037@\037host\037.")); return; |
