From f2b7c280ed2a61e131c113aa435609277dc16f35 Mon Sep 17 00:00:00 2001 From: Robert Gerus Date: Thu, 16 Apr 2015 10:55:39 +0200 Subject: [PATCH] Not everywhere String is a safe default ;) --- plugins/scrape.rb | 1 + run.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/scrape.rb b/plugins/scrape.rb index a637853..3b58268 100644 --- a/plugins/scrape.rb +++ b/plugins/scrape.rb @@ -2,6 +2,7 @@ require 'open-uri' require 'digest/md5' require 'data_mapper' require 'nokogiri' +require 'dm-postgres-adapter' include EventMachine::IRC::Commands diff --git a/run.rb b/run.rb index 55eb175..86280a0 100755 --- a/run.rb +++ b/run.rb @@ -47,7 +47,7 @@ Client = Repost.new do end on :nick do - Config.lookup("channels").each do |channel| + Config.lookup("channels", []).each do |channel| puts "joining #{channel}" join channel end