From 9cb66be29c287357e9b7135fe8840aa8b5979972 Mon Sep 17 00:00:00 2001
From: Adam Tauber <asciimoo@gmail.com>
Date: Wed, 11 Mar 2015 01:42:25 +0100
Subject: [PATCH] [enh] plugin id

---
 searx/plugins/__init__.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/searx/plugins/__init__.py b/searx/plugins/__init__.py
index 9c9c52ae4..61ec211e4 100644
--- a/searx/plugins/__init__.py
+++ b/searx/plugins/__init__.py
@@ -29,6 +29,7 @@ class PluginStore():
                 if not hasattr(plugin, plugin_attr):
                     logger.critical('missing attribute "{0}", cannot load plugin: {1}'.format(plugin_attr, plugin))
                     exit(3)
+            plugin.id = plugin.name.replace(' ', '_')
             self.plugins.append(plugin)
 
     def call(self, plugin_type, request, *args, **kwargs):