summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2005-07-29 11:14:12 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2005-07-29 11:14:12 +0000
commit438d56ceb82755961229d222d82a1c22ce04ab1d (patch)
tree47e0423a5cddf016c17e455fb4694dec66b9c94c /data/rbot
parentd9b4c6ab0cc94701afe373615884ebb8f3b5af69 (diff)
rename to opme
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/opme.rb19
1 files changed, 19 insertions, 0 deletions
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 <channel> => grant user ops in <channel>"
+ 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")