From 9a2d59bd76feedcdab65a3f6f91cd6552aeabdac Mon Sep 17 00:00:00 2001 From: dms Date: Wed, 3 Jan 2001 13:42:07 +0000 Subject: [PATCH] - allow SARing of factoids on _long_ factoids providing the new string is shorter than the subst string. git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@222 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/Factoids/Update.pl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Factoids/Update.pl b/src/Factoids/Update.pl index 0d67869..334a72b 100644 --- a/src/Factoids/Update.pl +++ b/src/Factoids/Update.pl @@ -105,8 +105,12 @@ sub update { # max length check again. if (length($rhs) > $param{'maxDataSize'}) { - &performAddressedReply("that's too long"); - return $noreply; + if (length($rhs) > length($exists)) { + &performAddressedReply("that's too long"); + return $noreply; + } else { + &status("Update: new length is still longer than maxDataSize but less than before, we'll let it go."); + } } &performAddressedReply("okay"); -- 2.39.2