]> jfr.im git - irc/rizon/bncbot.git/commitdiff
Only check time on detach events.
authorNol888 <redacted>
Fri, 25 Oct 2013 03:49:36 +0000 (20:49 -0700)
committerNol888 <redacted>
Fri, 25 Oct 2013 03:49:36 +0000 (20:49 -0700)
src/net/rizon/bncbot/commands/BncLastSeenCmd.java

index 7a2c4c4dfff8ca450e17cc96ee3ba68e9be0f291..7c1306a57aaf3673726f9f72b13dddf2d4c4880e 100644 (file)
@@ -44,7 +44,8 @@ public class BncLastSeenCmd extends AbstractSimpleCommand {
                                (System.currentTimeMillis() - ue.getActionTime().getTime()) / 86400000 > days) {\r
                                matches.add(ue);\r
                        } else if (e.getValue() != null &&\r
-                               (System.currentTimeMillis() - e.getValue().getEntryTime().getTime()) / 86400000 > days) {\r
+                               (System.currentTimeMillis() - e.getValue().getEntryTime().getTime()) / 86400000 > days &&\r
+                               e.getValue().getEntryType().equals("detach")) {\r
                                matches.add(ue);\r
                        }\r
                }\r