summaryrefslogtreecommitdiff
path: root/src/coremods
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-12-07 10:17:49 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-12-07 10:17:49 +0100
commit6352a6f9c9685c32ec17a7d6f9f89df0e3ec3054 (patch)
treeccc1e0d306c317a55d5c61ead43395efe2c6092b /src/coremods
parent6bc4db5e922dd49a46684c9b4e417cac36a71942 (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/coremods')
-rw-r--r--src/coremods/core_oper/cmd_kill.cpp2
-rw-r--r--src/coremods/core_user/cmd_mode.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/coremods/core_oper/cmd_kill.cpp b/src/coremods/core_oper/cmd_kill.cpp
index b60885c64..e6b41382c 100644
--- a/src/coremods/core_oper/cmd_kill.cpp
+++ b/src/coremods/core_oper/cmd_kill.cpp
@@ -44,7 +44,7 @@ CmdResult CommandKill::Handle (const std::vector<std::string>& parameters, User
}
User *u = ServerInstance->FindNick(parameters[0]);
- if ((u) && (!IS_SERVER(u)))
+ if (u)
{
/*
* Here, we need to decide how to munge kill messages. Whether to hide killer, what to show opers, etc.
diff --git a/src/coremods/core_user/cmd_mode.cpp b/src/coremods/core_user/cmd_mode.cpp
index 190983d13..a62bf51ca 100644
--- a/src/coremods/core_user/cmd_mode.cpp
+++ b/src/coremods/core_user/cmd_mode.cpp
@@ -43,7 +43,7 @@ CmdResult CommandMode::Handle(const std::vector<std::string>& parameters, User*
targetuser = ServerInstance->FindNick(target);
}
- if ((!targetchannel) && ((!targetuser) || (IS_SERVER(targetuser))))
+ if ((!targetchannel) && (!targetuser))
{
user->WriteNumeric(ERR_NOSUCHNICK, "%s :No such nick/channel", target.c_str());
return CMD_FAILURE;