From 0c6ff7d990e45a6699cad5f7f140182ed0c5c991 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Mon, 22 Dec 2008 06:25:49 +0000 Subject: the default should not be the notify the poster, unless something more extreme happens. the default should be to be quiet unless something more extreme happens. at least, this doesn't generate complaints anymore. perhaps that means it is working better? :) svn:r17724 --- src/or/dirserv.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/or/dirserv.c') diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 399e63cc84..598316fcda 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -568,13 +568,7 @@ authdir_wants_to_reject_router(routerinfo_t *ri, const char **msg, static int WRA_MORE_SEVERE(was_router_added_t a, was_router_added_t b) { - if (b == ROUTER_ADDED_SUCCESSFULLY) { - return 1; - } else if (b == ROUTER_ADDED_NOTIFY_GENERATOR) { - return !WRA_WAS_ADDED(a); - } else { - return a < b; - } + return a < b; } /** As for dirserv_add_descriptor(), but accepts multiple documents, and @@ -595,7 +589,7 @@ dirserv_add_multiple_descriptors(const char *desc, uint8_t purpose, int general = purpose == ROUTER_PURPOSE_GENERAL; tor_assert(msg); - r=ROUTER_ADDED_NOTIFY_GENERATOR; /*Least severe return value. */ + r=ROUTER_ADDED_SUCCESSFULLY; /*Least severe return value. */ format_iso_time(time_buf, now); if (tor_snprintf(annotation_buf, sizeof(annotation_buf), -- cgit v1.2.3-54-g00ecf