diff src/context.cpp @ 141:6256cab02248

cleanup smtp rate limit code
author carl
date Wed, 27 Sep 2006 08:11:38 -0700
parents 4028de9b46dd
children ecb40aa3eaa5
line wrap: on
line diff
--- a/src/context.cpp	Wed Sep 27 08:00:13 2006 -0700
+++ b/src/context.cpp	Wed Sep 27 08:11:38 2006 -0700
@@ -1191,10 +1191,8 @@
 bool parse_rate(TOKEN &tok, CONFIG &dc, CONTEXT &me);
 bool parse_rate(TOKEN &tok, CONFIG &dc, CONTEXT &me) {
 	char *def = tok.next();
-	if (def != token_lbrace) {
 		tok.push(def);
-		me.set_default_rate(tok.nextint());
-	}
+	if (def != token_lbrace) me.set_default_rate(tok.nextint());
 	if (!tsa(tok, token_lbrace)) return false;
 	while (true) {
 		char *have = tok.next();