From f99930c04b945fef3450082530c7482b4f2ef64a Mon Sep 17 00:00:00 2001
From: orbiter v0.36_build20050326
diff --git a/htroot/MessageSend_p.java b/htroot/MessageSend_p.java
index 7062db03b..deaeb752a 100644
--- a/htroot/MessageSend_p.java
+++ b/htroot/MessageSend_p.java
@@ -80,10 +80,11 @@ public class MessageSend_p {
HashMap result = yacyClient.permissionMessage(hash);
//System.out.println("DEBUG: permission request result = " + result.toString());
String peerName;
+ yacySeed targetPeer = null;
if (hash.equals(yacyCore.seedDB.mySeed.hash)) {
peerName = yacyCore.seedDB.mySeed.get("Name","nameless");
} else {
- yacySeed targetPeer = yacyCore.seedDB.getConnected(hash);
+ targetPeer = yacyCore.seedDB.getConnected(hash);
if (targetPeer == null)
peerName = "nameless";
else
@@ -92,14 +93,17 @@ public class MessageSend_p {
String response = (result == null) ? "-1" : (String) result.get("response");
if ((response == null) || (response.equals("-1"))) {
// we don't have permission or other peer does not exist
- body += " You cannot send a message to '" + peerName + "'. The peer does not respond. You cannot send a message to '" + peerName + "'. The peer does not respond. It was now removed from the peer-list. The peer '" + peerName + "' is alive and responded:
";
body += "'" + response + " You are allowed to send me a message ≤ " + messagesize + " kb and an attachment ≤ " + attachmentsize + ".'
Subject:
Text: