- spamserv_conf.debug_channel = AddChannel(str, now, "+tinms", NULL, NULL);
+ modes = database_get_data(conf_node, KEY_DEBUG_CHANNEL_MODES, RECDB_QSTRING);
+
+ spamserv_conf.debug_channel = AddChannel(str, now, (modes ? modes : "+tinms"), NULL, NULL);