From: dms Date: Wed, 3 Jan 2001 13:42:07 +0000 (+0000) Subject: - allow SARing of factoids on _long_ factoids providing the new string X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9a2d59bd76feedcdab65a3f6f91cd6552aeabdac;p=infobot.git - 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 --- 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");