diff options
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/ri.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/data/rbot/plugins/ri.rb b/data/rbot/plugins/ri.rb index 1eed65c0..1c4cc84d 100644 --- a/data/rbot/plugins/ri.rb +++ b/data/rbot/plugins/ri.rb @@ -53,8 +53,10 @@ class RiPlugin < Plugin end ret = ret.gsub(/\t/, " ").split(/\n/).join(" ").gsub(/\s\s+/, ' ') - if ret.length > @bot.config['ri.max_length'] && !m.private? - return m.reply('entry is too long to send to the channel or to some other user, use /msg to ask me about it') + if ret.length > @bot.config['ri.max_length'] + if !m.private? && tgt.to_s != m.sourcenick + return m.reply('entry is too long to send to the channel or to some other user, use /msg to ask me about it') + end end if tgt @bot.say(tgt, ret) |