From 1fd435e5d4fc3c51fae8a1a184b347bdf6039d26 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 10 May 2011 19:15:03 +0400 Subject: * Rework build process: - add librspamdserver - link this library to all daemons and utils of rspamd - use subdirectories more often * Rework global variables logic - move them to the main process * Fix logging to handle utf-8 correctly * Add statshow utility and make it working * Move printf functions to separate source file --- src/cfg_xml.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/cfg_xml.c') diff --git a/src/cfg_xml.c b/src/cfg_xml.c index b84d556b7..7fda9e14f 100644 --- a/src/cfg_xml.c +++ b/src/cfg_xml.c @@ -33,12 +33,14 @@ #include "util.h" #include "classifiers/classifiers.h" #include "tokenizers/tokenizers.h" -#include "lua/lua_common.h" + #include "view.h" #include "map.h" #include "expressions.h" #include "settings.h" +#include "lua/lua_common.h" + /* Maximum attributes for param */ #define MAX_PARAM 64 @@ -1077,7 +1079,6 @@ handle_lua (struct config_file *cfg, struct rspamd_xml_userdata *ctx, GHashTable return FALSE; } } - return TRUE; } @@ -1510,6 +1511,7 @@ rspamd_xml_start_element (GMarkupParseContext *context, const gchar *element_nam struct classifier_config *ccf; gchar *res, *condition; + if (g_ascii_strcasecmp (element_name, "if") == 0) { /* Push current state to queue */ g_queue_push_head (ud->if_stack, GSIZE_TO_POINTER ((gsize)ud->state)); -- cgit v1.2.3