From 438d56ceb82755961229d222d82a1c22ce04ab1d Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Fri, 29 Jul 2005 11:14:12 +0000 Subject: rename to opme --- data/rbot/plugins/opme.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 data/rbot/plugins/opme.rb (limited to 'data') 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") -- cgit v1.2.3