diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-12-07 10:17:49 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-12-07 10:17:49 +0100 |
commit | 6352a6f9c9685c32ec17a7d6f9f89df0e3ec3054 (patch) | |
tree | ccc1e0d306c317a55d5c61ead43395efe2c6092b /src/modules/m_swhois.cpp | |
parent | 6bc4db5e922dd49a46684c9b4e417cac36a71942 (diff) |
Remove some IS_SERVER() checks
- InspIRCd::FindUUID() and FindNick() no longer return FakeUsers so checking the user returned from those methods is needless
- m_dccallow is calling FindNickOnly() so it had the check needlessly
Diffstat (limited to 'src/modules/m_swhois.cpp')
-rw-r--r-- | src/modules/m_swhois.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_swhois.cpp b/src/modules/m_swhois.cpp index e75921a80..80c7ddd3b 100644 --- a/src/modules/m_swhois.cpp +++ b/src/modules/m_swhois.cpp @@ -43,7 +43,7 @@ class CommandSwhois : public Command { User* dest = ServerInstance->FindNick(parameters[0]); - if ((!dest) || (IS_SERVER(dest))) // allow setting swhois using SWHOIS before reg + if (!dest) // allow setting swhois using SWHOIS before reg { user->WriteNumeric(ERR_NOSUCHNICK, "%s :No such nick/channel", parameters[0].c_str()); return CMD_FAILURE; |