diff --git a/src/amqp.c b/src/amqp.c
index bdc62b3bf59f5e5080fee7068a32a47da48349ec..56718f072151d958e280c4dcec0b53a9b05238f3 100644 (file)
--- a/src/amqp.c
+++ b/src/amqp.c
*
* Authors:
* Sebastien Pahl <sebastien.pahl at dotcloud.com>
- * Florian Forster <octo at verplant.org>
+ * Florian Forster <octo at collectd.org>
**/
#include "collectd.h"
status = cf_util_get_string (child, &conf->exchange_type);
else if ((strcasecmp ("Queue", child->key) == 0) && !publish)
status = cf_util_get_string (child, &conf->queue);
- else if (strcasecmp ("QueueDurable", child->key) == 0)
+ else if ((strcasecmp ("QueueDurable", child->key) == 0) && !publish)
status = cf_util_get_boolean (child, &conf->queue_durable);
- else if (strcasecmp ("QueueAutoDelete", child->key) == 0)
+ else if ((strcasecmp ("QueueAutoDelete", child->key) == 0) && !publish)
status = cf_util_get_boolean (child, &conf->queue_auto_delete);
else if (strcasecmp ("RoutingKey", child->key) == 0)
status = cf_util_get_string (child, &conf->routing_key);