diff options
author | Roger Dingledine <arma@torproject.org> | 2008-12-22 06:25:49 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2008-12-22 06:25:49 +0000 |
commit | 0c6ff7d990e45a6699cad5f7f140182ed0c5c991 (patch) | |
tree | 62b6e54619be90e4cadfa0e7afc1278d41a84750 /src/or/dirserv.c | |
parent | 7262bf5eab97105ac833d0700a30052e053537dc (diff) | |
download | tor-0c6ff7d990e45a6699cad5f7f140182ed0c5c991.tar.gz tor-0c6ff7d990e45a6699cad5f7f140182ed0c5c991.zip |
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
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 10 |
1 files changed, 2 insertions, 8 deletions
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), |