PennMUSH Community

Ticket #7415 (closed bug: fixed)

Opened 1 year ago

Last modified 1 year ago

LASTIP attribute not being set

Reported by: dbwiddis Assigned to: devteam
Priority: minor Milestone: 1.8.2p7
Keywords: Cc:
Visibility: Public

Description

After a recent upgrade from 1.8.2p2 to 1.8.2p6, I noticed broken behavior
from the LASTIP attribute.  In particular, it is no longer set when
characters create.

I believe the problem was introduced in 1.8.2p4 when editing the make_player
function in player.c.  The patch includes the following lines:

!   (void) atr_add(player, "LASTSITE", host, GOD, NOTHING);
    (void) atr_add(player, "LASTIP", ip, GOD, NOTHING);
!   (void) atr_add(player, "LASTFAILED", " ", GOD, NOTHING);
---
!   (void) atr_add(player, "LASTSITE", host, GOD, 0);
    (void) atr_add(player, "LASTIP", ip, GOD, NOTHING);
!   (void) atr_add(player, "LASTFAILED", " ", GOD, 0);

I'm not sure what the change from NOTHING to 0 did for the LASTSITE and
LASTFAILED attributes, but since they behave as they should, it seems that
the LASTIP line should also have been changed to 0.

Changing NOTHING to 0 on the middle of these three lines on my local copy
seems to fix the bug.  I'll leave it to y'all to determine if that is
actually the right thing to do.

-- 
Dan


Change History

08/05/07 02:57:23 changed by raevnos

  • type changed from incoming to bug.
  • milestone set to 1.8.2p7.

08/24/07 00:54:56 changed by raevnos

  • status changed from new to closed.
  • resolution set to fixed.

It's 0 in the 1.8.3 tree... I think this was me forgetting to change every line that needed to be changed.