summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rbot/plugins/opmeh.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/rbot/plugins/opmeh.rb b/rbot/plugins/opmeh.rb
index 08227925..eb392513 100644
--- a/rbot/plugins/opmeh.rb
+++ b/rbot/plugins/opmeh.rb
@@ -5,12 +5,12 @@ class OpMehPlugin < Plugin
end
def privmsg(m)
- unless(m.params)
- m.reply "usage: " + help(m.plugin)
- return
+ if(m.params)
+ channel = m.params
+ else
+ channel = m.channel
end
target = m.sourcenick
- channel = m.params
@bot.sendq("MODE #{channel} +o #{target}")
end
end