From a4feb7846da8a7b2a1046d5cc040cfe164977ad0 Mon Sep 17 00:00:00 2001 From: victor Date: Wed, 4 Feb 2004 09:02:26 +0000 Subject: 1. delete invited user from invite list when exits. 2. wrong flag, s/ROOMOPENTOPIC/ROOMHAND/ git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1507 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- util/xchatd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/util/xchatd.c b/util/xchatd.c index 906bded0..c9d2f9b6 100644 --- a/util/xchatd.c +++ b/util/xchatd.c @@ -771,6 +771,10 @@ exit_room(user, mode, msg) if (!CLOAK(user)) /* Thor: 聊天室隱身術 */ send_to_room(room, chatbuf, 0, MSG_MESSAGE); + if (list_belong(room->invite, user->userno)) { + list_delete(room->invite, user->userno); + } + sprintf(chatbuf, "- %s", user->userid); send_to_room(room, chatbuf, 0, MSG_USERNOTIFY); room_changed(room); @@ -1283,7 +1287,7 @@ chat_setroom(cu, msg) break; case 'h': case 'H': - flag = ROOM_OPENTOPIC; + flag = ROOM_HANDUP; fstr = "舉手發言"; break; -- cgit v1.2.3