diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-02-04 17:02:26 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-02-04 17:02:26 +0800 |
commit | a4feb7846da8a7b2a1046d5cc040cfe164977ad0 (patch) | |
tree | c051f3388c9f774a9f40a7d816079f309f114ac7 /util | |
parent | 75959970db064a713d61af3754bbf6fd9f07e254 (diff) | |
download | pttbbs-a4feb7846da8a7b2a1046d5cc040cfe164977ad0.tar pttbbs-a4feb7846da8a7b2a1046d5cc040cfe164977ad0.tar.gz pttbbs-a4feb7846da8a7b2a1046d5cc040cfe164977ad0.tar.bz2 pttbbs-a4feb7846da8a7b2a1046d5cc040cfe164977ad0.tar.lz pttbbs-a4feb7846da8a7b2a1046d5cc040cfe164977ad0.tar.xz pttbbs-a4feb7846da8a7b2a1046d5cc040cfe164977ad0.tar.zst pttbbs-a4feb7846da8a7b2a1046d5cc040cfe164977ad0.zip |
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
Diffstat (limited to 'util')
-rw-r--r-- | util/xchatd.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |