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)
+ m.okay
else
m.reply(ret)
end