diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-05-23 15:49:26 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-05-23 15:49:26 +0800 |
commit | a1d31eed1c0c90d5da1f0c34016278f11ccd0733 (patch) | |
tree | 76fa30cfd11db74bfda8f61df8abfa8e6e91424a | |
parent | 1510f0750dfbb312e236c7592c042d0caeeeeede (diff) | |
download | pttbbs-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
-rw-r--r-- | util/xchatd.c | 3 |
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, "[1m*%s*[m ", cu->chatid); + sprintf(chatbuf, "[1m*%s (%s)*[m ", cu->chatid, cu->userid); strncat(chatbuf, msg, 80); send_to_user(xuser, chatbuf, userno, MSG_MESSAGE); |