From 47bcf91419e614b34ed04e05c8d28663c6c5202c Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 8 Aug 2008 09:26:39 +0200 Subject: plugins.rb: use IO.read instead of readlins+join gimmicks --- lib/rbot/plugins.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rbot/plugins.rb b/lib/rbot/plugins.rb index aefc036c..4d51cfc5 100644 --- a/lib/rbot/plugins.rb +++ b/lib/rbot/plugins.rb @@ -540,7 +540,7 @@ module Plugins desc = desc.to_s + " " if desc begin - plugin_string = IO.readlines(fname).join("") + plugin_string = IO.read(fname) debug "loading #{desc}#{fname}" plugin_module.module_eval(plugin_string, fname) return :loaded -- cgit v1.2.3