summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorWouter Coekaerts <coekie@irssi.org>2005-07-17 16:43:18 +0000
committercoekie <coekie@dbcabf3a-b0e7-0310-adc4-f8d773084564>2005-07-17 16:43:18 +0000
commit547065cb42de5122baabaee9bd7fef1cf30382eb (patch)
tree0520d222b9baca336a7f2f9cf7c416d2d9f478a9 /src/fe-common
parent181f00c15e261f2dd2608891280f54854ec2da38 (diff)
downloadirssi-547065cb42de5122baabaee9bd7fef1cf30382eb.zip
Fix /eval recursion crashing (debian/patches/04eval_recurse.dpatch by David Pashley)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3865 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r--src/fe-common/core/fe-core-commands.c3
-rw-r--r--src/fe-common/core/module-formats.c1
-rw-r--r--src/fe-common/core/module-formats.h1
3 files changed, 4 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-core-commands.c b/src/fe-common/core/fe-core-commands.c
index dd788a91..545cf027 100644
--- a/src/fe-common/core/fe-core-commands.c
+++ b/src/fe-common/core/fe-core-commands.c
@@ -49,7 +49,8 @@ static int ret_texts[] = {
TXT_ILLEGAL_PROTO,
TXT_NOT_GOOD_IDEA,
TXT_INVALID_TIME,
- TXT_INVALID_CHARSET
+ TXT_INVALID_CHARSET,
+ TXT_EVAL_MAX_RECURSE
};
int command_hide_output;
diff --git a/src/fe-common/core/module-formats.c b/src/fe-common/core/module-formats.c
index 6d13ed08..66fb9f91 100644
--- a/src/fe-common/core/module-formats.c
+++ b/src/fe-common/core/module-formats.c
@@ -219,6 +219,7 @@ FORMAT_REC fecommon_core_formats[] = {
{ "invalid_level", "Invalid message level", 0 },
{ "invalid_size", "Invalid size", 0 },
{ "invalid_charset", "Invalid charset: $0", 1, { 0 } },
+ { "eval_max_recurse", "/eval hit maximum recursion limit", 0 },
/* ---- */
{ NULL, "Themes", 0 },
diff --git a/src/fe-common/core/module-formats.h b/src/fe-common/core/module-formats.h
index ea9af5d2..55ea9df0 100644
--- a/src/fe-common/core/module-formats.h
+++ b/src/fe-common/core/module-formats.h
@@ -188,6 +188,7 @@ enum {
TXT_INVALID_LEVEL,
TXT_INVALID_SIZE,
TXT_INVALID_CHARSET,
+ TXT_EVAL_MAX_RECURSE,
TXT_FILL_11,