summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/xchatd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/xchatd.c b/util/xchatd.c
index 5b216b9d..37b4dde0 100644
--- a/util/xchatd.c
+++ b/util/xchatd.c
@@ -1128,6 +1128,7 @@ chat_private(ChatUser *cu, char *msg)
{ /* Thor.0724: 用 userid也可傳悄悄話 */
xuser = cuser_by_userid(recipient);
}
+
if (xuser == NULL)
{
sprintf(chatbuf, msg_no_such_id, recipient);
@@ -1139,7 +1140,7 @@ chat_private(ChatUser *cu, char *msg)
else if (*msg)
{
userno = cu->userno;
- sprintf(chatbuf, "*%s* ", cu->chatid);
+ sprintf(chatbuf, "*%s (%s)* ", cu->chatid, cu->userid);
strncat(chatbuf, msg, 80);
send_to_user(xuser, chatbuf, userno, MSG_MESSAGE);