From 379e57a91877830ebede66935304d3edb701f5ea Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 9 Jan 2014 15:23:18 +0000 Subject: - 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 --- modules/core/m_message.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules/core') 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() -- cgit