From bc0d4e7d7646e48e4933a786b953733a31b1d4d7 Mon Sep 17 00:00:00 2001 From: Guo Rui Date: Wed, 8 Jul 2009 22:51:46 +0800 Subject: [PATCH] Trigger Processcaption event only for caption & hstatus handling. --- src/screen.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/screen.c b/src/screen.c index 43d6259..40b69e6 100644 --- a/src/screen.c +++ b/src/screen.c @@ -2539,10 +2539,10 @@ int rec; *p = '\0'; #ifdef SCRIPT - /* FIXME: Need a way to pass result back. - * Also, should it be specific to caption or to hstatus? */ - if (trigger_sevent(&globalevents.processcaption, display)) - return winmsg_buf; + /* FIXME: Need a way to pass result back.*/ + if (str == hstatusstring || str == captionstring) + if (trigger_sevent(&globalevents.processcaption, display, str == hstatusstring)) + return winmsg_buf; #endif if (!display) return winmsg_buf; -- 2.11.4.GIT