소스 검색

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

Stefan Kloepping 10 년 전
부모
커밋
3b2909f09f
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  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)