From e58484742bc2812a2082cce244ff3bdf3d156d55 Mon Sep 17 00:00:00 2001 From: piaip Date: Sun, 6 Jan 2008 05:13:10 +0000 Subject: - 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 --- util/xchatd.c | 4 ++-- 1 file 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); } -- cgit v1.2.3