diff options
Diffstat (limited to 'lib/rbot/plugins')
-rw-r--r-- | lib/rbot/plugins/opmeh.rb | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/lib/rbot/plugins/opmeh.rb b/lib/rbot/plugins/opmeh.rb index 2776de60..0702c906 100644 --- a/lib/rbot/plugins/opmeh.rb +++ b/lib/rbot/plugins/opmeh.rb @@ -1,19 +1,19 @@ -class OpMehPlugin < Plugin
-
- def help(plugin, topic="")
- return "opmeh <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 = OpMehPlugin.new
-plugin.register("opmeh")
+class OpMehPlugin < Plugin + + def help(plugin, topic="") + return "opmeh <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 = OpMehPlugin.new +plugin.register("opmeh") |