Browse Source

ffpb.py: add flausch to !exec-on-peer output

Stefan Kloepping 10 years ago
parent
commit
3b2909f09f
1 changed files with 6 additions and 1 deletions
  1. 6 1
      modules/ffpb.py

+ 6 - 1
modules/ffpb.py

@@ -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)