1 --- bforce/expression.y.old Thu Aug 30 16:33:48 2001 2 +++ bforce/expression.y Thu Feb 6 23:38:32 2003 3 @@ -52,6 +52,7 @@ 4 #include "logger.h" 5 #include "session.h" 6 #include "nodelist.h" 7 +#include "io.h" 8 9 static struct tm *now = NULL; 10 static int expr_result = 0; 11 @@ -205,6 +206,7 @@ 12 { 13 $$ = expr_check_logic($1, OR, $3); 14 } 15 + ; 16 %% 17 18 #include "expression_lex.c" 19 @@ -329,6 +331,10 @@ 20 else if( state.modemport && state.modemport->name ) 21 { 22 return strstr(state.modemport->name, str) ? 1 : 0; 23 + } 24 + else if( isatty(0) ) 25 + { 26 + return strstr(ttyname(0), str) ? 1 : 0; 27 } 28 29 return -1; 30