diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-06 13:13:10 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-06 13:13:10 +0800 |
commit | e58484742bc2812a2082cce244ff3bdf3d156d55 (patch) | |
tree | 9b9d060b54752452c0a5bcf52c91edaba8bf8147 /util | |
parent | ea71bde6b0addb910454451a969e2cfeca14eb4d (diff) | |
download | pttbbs-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.c | 4 |
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, "¡° [32;1m%s[m ¶i¤J [33;1m[%s][m ¥]´[", - cuser->chatid, rname); + sprintf(chatbuf, "¡° [32;1m%s (%s)[m ¶i¤J [33;1m[%s][m ¥]´[", + cuser->chatid, cuser->userid, rname); if (!CLOAK(cuser)) /* Thor: ²á¤Ñ«ÇÁô¨³N */ send_to_room(room, chatbuf, cuser->userno, MSG_MESSAGE); } |