From: nveid Date: Thu, 26 Oct 2006 00:17:50 +0000 (+0000) Subject: guestnukefix X-Git-Tag: 0.73~228 X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=1a6241bacf0623d0f497f1a95c2ecaa29f6c57be;p=cobramush.git guestnukefix In the event someone @su'd into a connected guest & disconnected while someone is still connected to that guest the guest would be destroyed. --- diff --git a/game/txt/changes/0.72p2 b/game/txt/changes/0.72p2 index 6ba3095..c79c03e 100644 --- a/game/txt/changes/0.72p2 +++ b/game/txt/changes/0.72p2 @@ -19,3 +19,6 @@ CobraMUSH Version 0.72p2 division_cost. [RLB] * Quotas were not being checked properely before a division received objects into their division. [RLB] + * In the event two descriptors were connected to a Guest, and + one disconnected. Possible through possesing a Guest using @su. + Guest was destroyed even though it was connected. [RLB] diff --git a/src/bsd.c b/src/bsd.c index df85f89..dd06654 100644 --- a/src/bsd.c +++ b/src/bsd.c @@ -3911,7 +3911,7 @@ announce_disconnect(dbref player) } if (!Dark(player)) flag_broadcast(0, "MONITOR", "%s %s", T("GAME:"), tbuf1); - if(Guest(player)) { /* queue for destruction */ + if(Guest(player) && !Connected(player)) { /* queue for destruction */ set_flag_internal(player, "GOING"); set_flag_internal(player, "GOING_TWICE"); }