changeset 668:760b4c990221

Fix task failure trigger.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 22 Sep 2007 02:01:16 +0000
parents 6b608ea3f7af
children dda12c2548c8
files ggrtf-nun.tf
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ggrtf-nun.tf	Wed Sep 19 15:37:09 2007 +0000
+++ b/ggrtf-nun.tf	Sat Sep 22 02:01:16 2007 +0000
@@ -210,7 +210,11 @@
 	/set nun_task_n=%;/set nun_task_t=0%;/set nun_task_c=0
 
 /def -i -p9999 -mregexp -t"^\* You have FAILED task '([A-Za-z' ]+)' \*" gnun_task_failed =\
-	/msq @{BCgreen}Failed nun task@{n} '@{Ccyan}%{nun_task_n}@{n}'. Time spent: @{Cyellow}$[prgetstime(nun_task_t)]@{n}%;\
+	/if ({P1}=~nun_task_n)\
+		/msq @{BCgreen}Failed nun task@{n} '@{Ccyan}%{nun_task_n}@{n}'. Time spent: @{Cyellow}$[prgetstime(nun_task_t)]@{n}%;\
+	/else \
+		/msq @{BCgreen}Failed nun task@{n} '@{Ccyan}%{P1}@{n}'.%;\
+	/endif%;\
 	/set nun_task_n=%;/set nun_task_t=0%;/set nun_task_c=0
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;