@@ -155,7 +155,12 @@ def ffpb_remoteexec(bot, trigger):
bot.say('exec-on-peer(' + target_name + '): No output')
return
- bot.say('exec-on-peer(' + target_name + '): ' + str(len(lines)) + ' Zeilen (zeige max. 8):')
+ msg = 'exec-on-peer(' + target_name + '): ' + str(len(lines))
+ if len(lines) > 8:
+ msg += ' Zeilen (zeige max. 8):')
+
+ bot.say(msg)
for line in lines[0:8]:
bot.say(line)