diff options
-rw-r--r-- | config_defaults.rb | 1 | ||||
-rw-r--r-- | dudle.rb | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/config_defaults.rb b/config_defaults.rb index 5e3e0ec..75e1412 100644 --- a/config_defaults.rb +++ b/config_defaults.rb @@ -61,6 +61,7 @@ $conf.default_css = "default.css" $conf.dudle_src = "https://github.com/kellerben/dudle/" +$conf.bots = /bot/i if File.exists?("config.rb") || File.exists?("../config.rb") require_relative "config" @@ -122,7 +122,7 @@ class Dudle if is_poll? # log last read acces manually (no need to grep server logfiles) - File.open("last_read_access","w").close unless @cgi.user_agent =~ /bot|Yahoo! Slurp|BaiDuSpider/i + File.open("last_read_access","w").close unless @cgi.user_agent =~ $conf.bots @basedir = ".." inittabs @table = YAML::load(VCS.cat(self.revision, "data.yaml")) |