TIP: Click on subject to list as thread! ANSI
echo: binkd
to: Michael Dukelsky
from: Oli
date: 2021-09-09 09:00:00
subject: Perl on_handshake(): @me

Michael wrote (2021-09-08):

 MD> Hello Oli,

 MD> Wednesday September 08 2021, Oli wrote to All:

 Ol>> HELP! ;)
 Ol>> I'm trying to use the @me array in on_handshake(), but no matter
 Ol>> what I do I always get the error:

 Ol>> "Perl on_handshake(): @me contains no valid addresses"

 Ol>> even with this simple sub:

 Ol>> sub on_handshake
 Ol>> {
 Ol>>   @me;
 Ol>> }

 MD> I've never used this hook but as far as I understand you have to put the
 MD> AKAs you want to present to the @me array. The array in your sub contains
 MD> no addresses, so you receive the error message.

The side effects are a bit confusing:

sub on_handshake
{
     Log(3, ">>");
}

sub after_handshake
{
     Log(3, ">> @me");
}


+ 08:43 [1459] outgoing session with 127.0.0.1:24554
- 08:43 [1459] >>
+ 08:43 [1459] Perl on_handshake(): @me contains no valid addresses
- 08:43 [1459] OPT CRAM-MD5-fffdf8c077e8c9b94ce2e83d8da0a8ee
[...]
- 08:43 [1459] session in CRYPT mode
- 08:43 [1459] >> 2000:1/2@fakenet 4000:1/1@testnet


I'm not sure if this is considered to be expected behavior or a bug?

---
                                          
* Origin: 1995| Invention of the Cookie. The End. (2:280/464.47)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.