summaryrefslogtreecommitdiff
path: root/lib/rbot/plugins.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-08-08 09:26:39 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-08-08 09:26:39 +0200
commit47bcf91419e614b34ed04e05c8d28663c6c5202c (patch)
treee8616b2f1c6d48975b3844727c863aaf02b107c8 /lib/rbot/plugins.rb
parent7f843343b4116b20bb7d4b78ed6ed94400819931 (diff)
plugins.rb: use IO.read instead of readlins+join gimmicks
Diffstat (limited to 'lib/rbot/plugins.rb')
-rw-r--r--lib/rbot/plugins.rb2
1 files changed, 1 insertions, 1 deletions
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