Kalle Vahlman (in response to DeborahRG) > Re: To Raisse the Thaumaturge >> Regarding her signature on posts, Raisse the Thaumaturge wrote: >>> I've answered him. Do you also object? Does anyone object? Shall I stop it? I think you shouldn't even think stopping it, since there's no technical or ethical reasons anyone should be offended. Disliking is not a reason. DeborahRG kirjoitti viestissään 12 Feb 2000 07:15:36 GMT: > For my two cents, I think the original poster was "bothered" only > because he misunderstood what you were doing, and thought the > signatures were automatically generated. That would have been a neat > trick! Well, thinking that this can't be too hard to code (and because I tend to get obsessed with everything unimportant :-) I wrote a little perl script that searches the nethack logfile for given words and prints out matching killed-messages for c&p. Of course, this is *nix specific and requires read permissions to the logfile, so it doesn't work everywhere. And don't blame me if it nukes your system, it worked here just fine. Example: kalliorinne: kalle/ perl .perl/nh_logsearch.pl shopkeeper bayburt Kalle,killed by hallucinogen-distorted Ms. Bayburt, the shopkeeper kalliorinne: kalle/ Using a good editor, one could write a macro or something to make it fully automated. Here's the script for those who want to try it out: ******** perl ***** open LOG, '/var/lib/games/nethack/logfile' or die "E: Couldn't open logfile.\n"; die "E: Nothing to search.\n" if (!$ARGV[0]); $match = 0; while () { chomp; ($roska,$reason) = split /Cha\ |Neu\ |Law\ /; for ($i=0;$i | While worshipping the RNG, I heard: You destroy the one-eyed one-horned flying purple people eater!--More--