summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/opme.rb
diff options
context:
space:
mode:
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")