summaryrefslogtreecommitdiffstats
path: root/util/xchatd.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-01-28 17:38:03 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-01-28 17:38:03 +0800
commit1ee4544b9503acb2a86427495a8e206b2225382b (patch)
tree29c4bee4423f1476e33ca04b081f9f6e0f40b3c5 /util/xchatd.c
parent4b2facc1a39a7816040f581843d39e442f887669 (diff)
downloadpttbbs-1ee4544b9503acb2a86427495a8e206b2225382b.tar
pttbbs-1ee4544b9503acb2a86427495a8e206b2225382b.tar.gz
pttbbs-1ee4544b9503acb2a86427495a8e206b2225382b.tar.bz2
pttbbs-1ee4544b9503acb2a86427495a8e206b2225382b.tar.lz
pttbbs-1ee4544b9503acb2a86427495a8e206b2225382b.tar.xz
pttbbs-1ee4544b9503acb2a86427495a8e206b2225382b.tar.zst
pttbbs-1ee4544b9503acb2a86427495a8e206b2225382b.zip
- xchatd: prevent malicious user flooding chat page to hide his userid
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3877 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/xchatd.c')
-rw-r--r--util/xchatd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/xchatd.c b/util/xchatd.c
index 128dd689..cca3bcff 100644
--- a/util/xchatd.c
+++ b/util/xchatd.c
@@ -652,7 +652,7 @@ exit_room(ChatUser *user, int mode, char *msg)
{
case EXIT_LOGOUT:
- sprintf(chatbuf, "◆ %s 離開了 ...", chatid);
+ sprintf(chatbuf, "◆ %s (%s) 離開了 ...", chatid, user->userid);
if (msg && *msg)
{
strcat(chatbuf, ": ");
@@ -662,12 +662,12 @@ exit_room(ChatUser *user, int mode, char *msg)
case EXIT_LOSTCONN:
- sprintf(chatbuf, "◆ %s 成了斷線的風箏囉", chatid);
+ sprintf(chatbuf, "◆ %s (%s) 成了斷線的風箏囉", chatid, user->userid);
break;
case EXIT_KICK:
- sprintf(chatbuf, "◆ 哈哈!%s 被踢出去了", chatid);
+ sprintf(chatbuf, "◆ 哈哈!%s (%s) 被踢出去了", chatid, user->userid);
break;
}
if (!CLOAK(user)) /* Thor: 聊天室隱身術 */