Skip to content

Commit

Permalink
Fixed color errors in pgroup log. Auto-stand when leaving apts.
Browse files Browse the repository at this point in the history
  • Loading branch information
luciensadi committed Jan 9, 2024
1 parent 6927bd7 commit c2a4f7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/act.movement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2130,6 +2130,9 @@ ACMD(do_leave)

act("$n arrives.", TRUE, ch, 0, 0, TO_ROOM);

if (GET_POS(ch) > POS_STUNNED && GET_POS(ch) != POS_FIGHTING)
GET_POS(ch) = POS_STANDING;

// If not screenreader, look.
if (!PRF_FLAGGED(ch, PRF_SCREENREADER))
look_at_room(ch, 0, 0);
Expand Down
9 changes: 4 additions & 5 deletions src/playergroups.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1130,31 +1130,30 @@ void do_pgroup_wire(struct char_data *ch, char *argument) {
}

// Mail the recipient.
snprintf(buf, sizeof(buf), "'%s' has wired %lu nuyen to your account.\r\n", GET_PGROUP(ch)->get_name(), amount);
snprintf(buf, sizeof(buf), "'%s^n' has wired %lu nuyen to your account with the note: %s^n.\r\n", GET_PGROUP(ch)->get_name(), amount, remainder);
store_mail(vict ? GET_IDNUM(vict) : isfile, ch, buf);

// Log it.
char *player_name = NULL;
GET_PGROUP(ch)->audit_log_vfprintf("%s wired %lu nuyen to %s. Reason: %s",
GET_PGROUP(ch)->audit_log_vfprintf("%s^n wired %lu nuyen to %s. Reason: %s",
GET_CHAR_NAME(ch),
amount,
vict ? GET_CHAR_NAME(vict) : (player_name = get_player_name(isfile)),
remainder);
GET_PGROUP(ch)->secret_log_vfprintf("A shadowy figure wired %lu nuyen to someone's account. Reason: %s",
amount,
remainder);
snprintf(buf, sizeof(buf), "%s wired %lu nuyen to %s on behalf of '%s'. Reason: %s",
mudlog_vfprintf(ch, LOG_GRIDLOG, "%s wired %lu nuyen to %s on behalf of '%s^n'. Reason: %s^n",
GET_CHAR_NAME(ch),
amount,
vict ? GET_CHAR_NAME(vict) : player_name,
GET_PGROUP(ch)->get_name(),
remainder);
mudlog(buf, ch, LOG_GRIDLOG, TRUE);

// Clean up.
DELETE_ARRAY_IF_EXTANT(player_name);

send_to_char(ch, "You wire %lu nuyen to %s's account on behalf of '%s'.\r\n",
send_to_char(ch, "You wire %lu nuyen to %s's account on behalf of '%s^n'.\r\n",
amount,
vict ? GET_CHAR_NAME(vict) : get_player_name(isfile),
GET_PGROUP(ch)->get_name());
Expand Down

0 comments on commit c2a4f7f

Please sign in to comment.