From 236c76103363888c2227d08b6834907611ad6526 Mon Sep 17 00:00:00 2001 From: Ari Johnson Date: Mon, 11 Sep 2006 05:42:50 +0000 Subject: [PATCH] Fixed notify bug that caused extchat to crash --- src/notify.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/notify.c b/src/notify.c index ed1f09d..da9d6b2 100644 --- a/src/notify.c +++ b/src/notify.c @@ -823,13 +823,14 @@ notify_anything_loc(dbref speaker, na_lookup func, /* Evaluate the On Contact Message */ if(flags & NA_EVALONCONTACT) { - wsave[j] = global_eval_context.wenv[j]; + for (j = 0; j < 10; j++) + wsave[j] = global_eval_context.wenv[j]; global_eval_context.wenv[0] = msgbuf; for (j = 1; j < 10; j++) global_eval_context.wenv[j] = NULL; bp = eocm; - process_expression(eocm, &bp, (const char **) &msgbuf, target, speaker, speaker, - PE_DEFAULT, PT_DEFAULT, NULL); + process_expression(eocm, &bp, (const char **) &msgbuf, target, speaker, + speaker, PE_DEFAULT, PT_DEFAULT, NULL); *bp = 0; for (j = 0; j < 10; j++) global_eval_context.wenv[j] = wsave[j]; -- 2.30.2