summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-09 15:23:18 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-09 15:23:18 +0000
commit379e57a91877830ebede66935304d3edb701f5ea (patch)
treec887111c6794317d6f2681d22a2ad4f5a0dbf8a3 /modules
parentf51dc2b1f7e8fc97427c2cc61aefd993b892821c (diff)
- Make PRIVMSG/NOTICE use UID targets if possible
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2791 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules')
-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 9fba389..a2332e2 100644
--- a/modules/core/m_message.c
+++ b/modules/core/m_message.c
@@ -581,8 +581,7 @@ msg_client(int p_or_n, const char *command, struct Client *source_p,
if (!MyClient(source_p) || HasUMode(source_p, UMODE_OPER) ||
(MyClient(source_p) &&
!flood_attack_client(p_or_n, source_p, target_p)))
- sendto_anywhere(target_p, source_p, "%s %s :%s",
- command, target_p->name, text);
+ sendto_anywhere(target_p, source_p, command, ":%s", text);
}
}
else
@@ -590,8 +589,7 @@ msg_client(int p_or_n, const char *command, struct Client *source_p,
if (!MyClient(source_p) || HasUMode(source_p, UMODE_OPER) ||
(MyClient(source_p)
&& !flood_attack_client(p_or_n, source_p, target_p)))
- sendto_anywhere(target_p, source_p, "%s %s :%s", command, target_p->name,
- text);
+ sendto_anywhere(target_p, source_p, command, ":%s", text);
}
/* flood_attack_client()