From c48b4d6fb9312b66ca937028dcba97fc04c99b9b Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Tue, 19 Jul 2005 23:45:52 +0000 Subject: enable in-channel usage --- rbot/plugins/opmeh.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rbot/plugins') 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 -- cgit v1.2.3