[Prev][Next][Index][Thread]

# LambdaCore correction: $mail_agent:resolve_addr

- Date: Sat, 6 Jan 1996 12:08:48 PST
- From:
- Content-Type: text/plain; charset="us-ascii"

    On LambdaMOO, I hacked $mail_agent:resolve_addr such that if you attempted to send mail to someone, it would decline to send the message entirely.  This was intended to supercede the refusal code in :receive_message.  However, at that time the refusal code was -not- in LambdaCore, so I included coding to remove my hackery when a Core was generated.  So now we have refusal code without my change.

    The code change is in $mail_agent:resolve_addr:
      32:      "vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv";
      33:      "*** LambdaMOO-Specific Hack For Mail Refusal WOO WOO ***";
      34:    elseif (is_player(recip) && recip:refuses_action(from, "mail"))
      35:      player:tell(recip:mail_refused_msg());
      36:      return E_INVARG;
      37:      "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^";

    Without this code, sending mail to a person who is refusing you will produce messages like:

      #30119:receive_message: Blackbriar refuses your mail.
      Mail actually sent to Blackbriar (#30119).

    while with this code change I will see only

      Blackbriar refuses your mail.

    and the mail will -not- be sent.  (This is a good thing in the mail editor, IMO.)

    Seth / Blackbriar
    ---------------------------------------------------------------------------
    Seth I. Rich - sir@po.cwru.edu                         no, no quote.
    Rabbits on walls, no problem.                          it's far too cold.

- Prev: Re: kill_task(task_id())
- Next: LambdaMoo Programmer's Manual update to 1.7.9p2
- Index: MOO-cows
- Thread: MOO-cows

Home | Subject Index | Thread Index