From: Tom Gilbert Date: Fri, 29 Jul 2005 11:14:12 +0000 (+0000) Subject: rename to opme X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=438d56ceb82755961229d222d82a1c22ce04ab1d;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git rename to opme --- diff --git a/data/rbot/plugins/opme.rb b/data/rbot/plugins/opme.rb new file mode 100644 index 00000000..aad388a9 --- /dev/null +++ b/data/rbot/plugins/opme.rb @@ -0,0 +1,19 @@ +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")