summaryrefslogtreecommitdiffstats
path: root/util/xchatd.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-05-23 15:49:26 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-05-23 15:49:26 +0800
commita1d31eed1c0c90d5da1f0c34016278f11ccd0733 (patch)
tree76fa30cfd11db74bfda8f61df8abfa8e6e91424a /util/xchatd.c
parent1510f0750dfbb312e236c7592c042d0caeeeeede (diff)
downloadpttbbs-a1d31eed1c0c90d5da1f0c34016278f11ccd0733.tar
pttbbs-a1d31eed1c0c90d5da1f0c34016278f11ccd0733.tar.gz
pttbbs-a1d31eed1c0c90d5da1f0c34016278f11ccd0733.tar.bz2
pttbbs-a1d31eed1c0c90d5da1f0c34016278f11ccd0733.tar.lz
pttbbs-a1d31eed1c0c90d5da1f0c34016278f11ccd0733.tar.xz
pttbbs-a1d31eed1c0c90d5da1f0c34016278f11ccd0733.tar.zst
pttbbs-a1d31eed1c0c90d5da1f0c34016278f11ccd0733.zip
- xchatd: provide real user id in private messages (thanks: Bluesdan@PttSuggest)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4463 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/xchatd.c')
-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);