X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/b75c4f1cb9e048c35d3242cece45de07eb43282e..d63fdd677fc6ab221d92999630627bd1a0b8afd4:/binipstuff.pas?ds=inline

diff --git a/binipstuff.pas b/binipstuff.pas
index 7c6fc89..1f5fed4 100644
--- a/binipstuff.pas
+++ b/binipstuff.pas
@@ -8,9 +8,11 @@ interface
 
 {$include lcoreconfig.inc}
 
+uses
 {$ifndef win32}
-uses sockets;
+  sockets,
 {$endif}
+  pgtypes;
 
 {$ifdef fpc}
   {$mode delphi}
@@ -382,6 +384,13 @@ begin
       end;
     end;
   end;
+
+  {run length atleast 2 0 words}
+  if (runlength = 1) then begin
+    runlength := 0;
+    runbegin := 0;
+  end;
+
   result := '';
   for a := 0 to runbegin-1 do begin
     if (a <> 0) then result := result + ':';