summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-01-06 13:13:10 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-01-06 13:13:10 +0800
commite58484742bc2812a2082cce244ff3bdf3d156d55 (patch)
tree9b9d060b54752452c0a5bcf52c91edaba8bf8147 /util
parentea71bde6b0addb910454451a969e2cfeca14eb4d (diff)
downloadpttbbs-e58484742bc2812a2082cce244ff3bdf3d156d55.tar
pttbbs-e58484742bc2812a2082cce244ff3bdf3d156d55.tar.gz
pttbbs-e58484742bc2812a2082cce244ff3bdf3d156d55.tar.bz2
pttbbs-e58484742bc2812a2082cce244ff3bdf3d156d55.tar.lz
pttbbs-e58484742bc2812a2082cce244ff3bdf3d156d55.tar.xz
pttbbs-e58484742bc2812a2082cce244ff3bdf3d156d55.tar.zst
pttbbs-e58484742bc2812a2082cce244ff3bdf3d156d55.zip
- display userid in xchatd (to prevent spammers, reported by PttSuggest)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3797 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r--util/xchatd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/xchatd.c b/util/xchatd.c
index d50e822d..cd433f3a 100644
--- a/util/xchatd.c
+++ b/util/xchatd.c
@@ -1326,8 +1326,8 @@ arrive_room(ChatUser *cuser, ChatRoom *room)
send_to_user(cuser, chatbuf, 0, 0);
}
- sprintf(chatbuf, "¡° %s ¶i¤J [%s] ¥]´[",
- cuser->chatid, rname);
+ sprintf(chatbuf, "¡° %s (%s) ¶i¤J [%s] ¥]´[",
+ cuser->chatid, cuser->userid, rname);
if (!CLOAK(cuser)) /* Thor: ²á¤Ñ«ÇÁô¨­³N */
send_to_room(room, chatbuf, cuser->userno, MSG_MESSAGE);
}