diff options
author | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-07-19 23:45:52 +0000 |
---|---|---|
committer | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-07-19 23:45:52 +0000 |
commit | c48b4d6fb9312b66ca937028dcba97fc04c99b9b (patch) | |
tree | 036f7692473f79cba161bb30265f8c54ef78c967 | |
parent | ce7b848f47a78a0f2ef6c3c5e6cefdd7b859f753 (diff) |
enable in-channel usage
-rw-r--r-- | rbot/plugins/opmeh.rb | 8 |
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
|