|
# File rbot/plugins.rb, line 219
def privmsg(m)
return unless(m.plugin)
if (@@plugins.has_key?(m.plugin) &&
@@plugins[m.plugin].respond_to?("privmsg") &&
@@bot.auth.allow?(m.plugin, m.source, m.replyto))
begin
@@plugins[m.plugin].privmsg(m)
rescue StandardError, NameError, SyntaxError => err
puts "plugin #{@@plugins[m.plugin].name} privmsg() failed: " + err
puts err.backtrace.join("\n")
end
return true
end
return false
end
|