#-- vim:sw=2:et ##++ ## ## :title: Raw plugin ## ## Author:: Jacob Myers ## Copyright:: (C) 2010 Jacob Myers ## License:: Two-clause BSD license ## # class Raw < Plugin def help(plugin, topic="") "raw => send raw IRC commands" end def raw(m, params) return if !@bot.auth.allow?("raw::raw", m.source, m.replyto) @bot.sendq(params[:command].to_s) end end plugin = Raw.new plugin.default_auth('*', false) plugin.map 'raw *command', :action => :raw