diff src/context.cpp @ 149:9581f6e62574

switch to second context wins in all cases
author carl
date Mon, 19 Feb 2007 15:57:24 -0800
parents 9330b8d6a56b
children c7fc218686f5
line wrap: on
line diff
--- a/src/context.cpp	Tue Jan 30 16:27:49 2007 -0800
+++ b/src/context.cpp	Mon Feb 19 15:57:24 2007 -0800
@@ -420,20 +420,6 @@
 	context_map::iterator i = env_to.find(to);
 	if (i != env_to.end()) {
 		CONTEXTP  c = (*i).second;
-		int 	  s = strlen(to);
-		bool	 at = s && (to[s-1] == '@');
-		if (at && con->is_parent(c->get_parent())) {
-			if (debug_syslog) {
-				char oldname[maxlen];
-				char newname[maxlen];
-				char *oldn = c->get_full_name(oldname, maxlen);
-				char *newn = con->get_full_name(newname, maxlen);
-				char buf[maxlen*3];
-				snprintf(buf, maxlen*3, "both %s and %s claim envelope to %s, the first one wins", oldn, newn, to);
-				my_syslog(buf);
-			}
-			return; 	// don't take over user@ entries from your ancestors children
-		}
 		if ((c != con) && (c != con->get_parent())) {
 			if (debug_syslog) {
 				char oldname[maxlen];