summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/opme.rb
diff options
context:
space:
mode:
authorChris Gahan <chris@ill-logic.com>2006-01-28 07:17:18 +0000
committerChris Gahan <chris@ill-logic.com>2006-01-28 07:17:18 +0000
commit46cc000b3b9180cb9570a8b9afe1eaa31f622394 (patch)
treedfb2ef8bd7e593f04fd9827af11b073f4d75fb85 /data/rbot/plugins/opme.rb
parent6a606e8d5b485b578b9fcbe23f5e1fb5210f491f (diff)
opme now says okay BEFORE opping!
Diffstat (limited to 'data/rbot/plugins/opme.rb')
-rw-r--r--data/rbot/plugins/opme.rb38
1 files changed, 19 insertions, 19 deletions
diff --git a/data/rbot/plugins/opme.rb b/data/rbot/plugins/opme.rb
index aad388a9..3df3d0d1 100644
--- a/data/rbot/plugins/opme.rb
+++ b/data/rbot/plugins/opme.rb
@@ -1,19 +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")
+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
+ m.okay
+ @bot.sendq("MODE #{channel} +o #{target}")
+ end
+end
+plugin = OpMePlugin.new
+plugin.register("opme")