class OpMePlugin < Plugin def help(plugin, topic="") return "opme => grant user ops in " end def privmsg(m) if(m.params) channel = m.params else channel = m.channel end target = m.sourcenick @bot.sendq("MODE #{channel} +o #{target}") m.okay end end plugin = OpMePlugin.new plugin.register("opme")