]> jfr.im git - irc/rizon/bncbot.git/commitdiff
INCONSISTENCIES.
authorNol888 <redacted>
Sat, 28 Apr 2012 20:48:33 +0000 (16:48 -0400)
committerNol888 <redacted>
Sat, 28 Apr 2012 20:48:33 +0000 (16:48 -0400)
src/net/rizon/bncmanager/BncServer.java

index f25e5da33f1565f3cf059c860e884dbb8aeae56c..a1f69be7370da99a35b0d8c419a10761ebb62079 100644 (file)
@@ -511,6 +511,10 @@ public class BncServer {
                                                if (serverPing.contains(words[1]))\r
                                                        serverPing.remove(words[1]);\r
                                        }\r
+                                       else if (words.length > 3 && words[1].equals("PONG")) {\r
+                                               if (serverPing.contains(words[3].substring(1)))\r
+                                                       serverPing.remove(words[3].substring(1));\r
+                                       }\r
 \r
                                        // Handle JSON stuff.\r
                                        int jsonPos = line.indexOf("JSON:");\r