fix search terms starting with \d+ in sh/log etc
[spider.git] / cmd / show / chat.pl
index 9f543df58717b50aa4fbe707e7e9f62f20d5df57..6b01d20675b557432d161cb4cf9c3ed8e62d59bb 100644 (file)
@@ -1,7 +1,7 @@
 #
 # print out the general log file for chat only
 #
-# Copyright (c) 1998-2003 - Dirk Koopman G1TLH
+# Copyright (c) 1998-2023 - Dirk Koopman G1TLH
 #
 #
 #
@@ -28,7 +28,10 @@ while ($f = shift @f) {                 # next field
                next if $to;
        }
        next if $who;
-       ($who) = $f =~ /^(\w+)/o;
+       if ($f !~ /^\d+$/) {
+               ($who) = $f;
+       }
+#      ($who) = $f =~ /^(\w+)/o;
 }
 
 $to = 20 unless $to;