X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=lib%2Frbot%2Fplugins.rb;h=4d51cfc5e845d380cef3b1e588755dfe33353ef5;hb=9fcb32ca8058384a4bb91d748fcbd1f81378734d;hp=a6d1f5430050a3d9b8010af2d974f2a09e068cfa;hpb=09f65ecdf359c68ba0f26e7810d5772919346f71;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/lib/rbot/plugins.rb b/lib/rbot/plugins.rb index a6d1f543..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 @@ -943,7 +943,7 @@ module Plugins if method.to_sym == :privmsg delegate('ctcp_listen', m) if m.ctcp delegate('message', m) - privmsg(m) if m.address? + privmsg(m) if m.address? and not m.ignored? delegate('unreplied', m) unless m.replied else delegate(method, m)