From 53ece38bb1170821a32f14fb82e1e96718ec2ce1 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 28 Dec 2008 18:36:41 +0100 Subject: [PATCH] Remove redundant check. Surely, if source_p == target_p, then target_p->from == source_p->from. --- src/s_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s_user.c b/src/s_user.c index 667873e..ca5f74c 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -904,7 +904,7 @@ user_mode(struct Client *client_p, struct Client *source_p, int parc, const char return 0; } - if(source_p != target_p || target_p->from != source_p->from) + if(source_p != target_p) { sendto_one(source_p, form_str(ERR_USERSDONTMATCH), me.name, source_p->name); return 0;