]> jfr.im git - irc/rizon/moo.git/commitdiff
Underp wlogsearch posting last 10 results in channel and rest in notice.
authorOrillion <redacted>
Sun, 10 Jan 2016 13:31:42 +0000 (14:31 +0100)
committerOrillion <redacted>
Fri, 4 Mar 2016 21:26:11 +0000 (22:26 +0100)
logging/src/main/java/net/rizon/moo/plugin/logging/CommandWLogSearch.java

index ad2497f31dfe02a8efcd0b81596cc0e96ffb5ec3..35cec7cb7e0dd535f6850942283c77b48d8274c3 100644 (file)
@@ -98,9 +98,8 @@ final class CommandWLogSearch extends Command
                                
                                ++count;
                                
-                               if (limit > 0)
+                               if (count <= limit)
                                {
-                                       --limit;
                                        ++shown;
                                        
                                        if (src != null && !src.isEmpty())