]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Factoids/Update.pl
- allow SARing of factoids on _long_ factoids providing the new string
[infobot.git] / src / Factoids / Update.pl
index 0d678695d0772fa363d301f2ff31f976ca7b3abb..334a72b5928af738f26734d5d606029793453d46 100644 (file)
@@ -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");