From 1ee4544b9503acb2a86427495a8e206b2225382b Mon Sep 17 00:00:00 2001 From: piaip Date: Mon, 28 Jan 2008 09:38:03 +0000 Subject: - 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 --- util/xchatd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util/xchatd.c') 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: 聊天室隱身術 */ -- cgit v1.2.3