X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fri.rb;h=abecb6ec5a5966b57f52e0dd99593ae4d8715053;hb=16336b4a240a4265d1f2df1e30d7b68d3a924287;hp=763dd6589c44b79e68c59c17cfc3da2c9f76003c;hpb=6f5528a63b44e610a3d25d7fe583399163d7d2da;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/ri.rb b/data/rbot/plugins/ri.rb index 763dd658..abecb6ec 100644 --- a/data/rbot/plugins/ri.rb +++ b/data/rbot/plugins/ri.rb @@ -52,7 +52,7 @@ class RiPlugin < Plugin return m.reply("failed to execute ri") end ret = ret.gsub(/\t/, " ").split(/\n/).join(" ").gsub(/\s\s+/, ' ') - + 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')