summaryrefslogtreecommitdiff
path: root/modules/core
diff options
context:
space:
mode:
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 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()