1 class OpMePlugin < Plugin
3 def help(plugin, topic="")
4 return "opme [<channel>] => grant user ops in <channel> (or in the current channel if no channel is specified)"
8 channel = params[:chan]
11 m.reply "you should tell me where you want me to op you"
14 channel = m.channel.to_s
18 m.okay unless channel == m.channel.to_s
19 @bot.sendq("MODE #{channel} +o #{target}")
23 plugin = OpMePlugin.new
24 plugin.map("opme [:chan]")
25 plugin.default_auth("*",false)