From aea7050efea191ac7f6cfc33bd20e23c2c972617 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Tue, 8 Sep 2015 23:35:06 +1000 Subject: [PATCH] Don't create a double stack frame when calling aliases The old code created a new stack frame in parse_line_alias_special(), then another one in parse_line(). This prevented $functioncall() from working, and made the output of CALL look odd. |Rain| mentioned this years ago in starman.irc. --- Changelog | 2 ++ source/alias.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index c8f0027..da179cc 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,7 @@ [Changes 1.2.2] +* Fix $functioncall() scripting function (reported by |Rain|). (caf) + * Ensure close_server() clears the internal command queues for the right server. (caf) diff --git a/source/alias.c b/source/alias.c index bd23177..89481e7 100644 --- a/source/alias.c +++ b/source/alias.c @@ -1917,7 +1917,7 @@ char * parse_line_alias_special (char *name, char *what, char *args, int d1, int window_display = old_window_display; will_catch_return_exceptions++; - parse_line(NULL, what, args, d1, d2, 1); + parse_line(NULL, what, args, d1, d2, 0); will_catch_return_exceptions--; return_exception = 0;