From 7f2f32f3d0a3805b1d5715680962a65d958ae9bf Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Thu, 24 Aug 2017 15:19:12 -0700 Subject: [PATCH] Limit max action length from code-factoid result --- PBot/Factoids.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PBot/Factoids.pm b/PBot/Factoids.pm index db37daac..60a76582 100644 --- a/PBot/Factoids.pm +++ b/PBot/Factoids.pm @@ -684,6 +684,8 @@ sub interpreter { $action = "/say Error in factoid: $error"; } + $action = substr $action, 0, 400; + %SIG = %signals; alarm 1; }