summaryrefslogtreecommitdiff
path: root/modules/core
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-09 21:05:03 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-09 21:05:03 +0000
commit0ef5ae6d09ff4c2a341f59ac3fed25ffe413b89e (patch)
treec368e517410f153a5b81f8d20a31723f6224d52d /modules/core
parentccb6374075c33746b36bf98cf2c62f6427449e15 (diff)
- m_message.c:msg_client(): removed pointless MyClient() test
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2798 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules/core')
-rw-r--r--modules/core/m_message.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/core/m_message.c b/modules/core/m_message.c
index 8d9f9d8..59a77c8 100644
--- a/modules/core/m_message.c
+++ b/modules/core/m_message.c
@@ -447,14 +447,12 @@ msg_client(int p_or_n, const char *command, struct Client *source_p,
* and flooding -- fl
*/
if (!MyClient(source_p) || HasUMode(source_p, UMODE_OPER) ||
- (MyClient(source_p) &&
- !flood_attack_client(p_or_n, source_p, target_p)))
+ !flood_attack_client(p_or_n, source_p, target_p))
sendto_anywhere(target_p, source_p, command, ":%s", text);
}
}
else if (!MyClient(source_p) || HasUMode(source_p, UMODE_OPER) ||
- (MyClient(source_p) &&
- !flood_attack_client(p_or_n, source_p, target_p)))
+ !flood_attack_client(p_or_n, source_p, target_p))
sendto_anywhere(target_p, source_p, command, ":%s", text);
}