/* 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];