Commits

Chris Thunes committed 344f2f9

Don't connect until we have our debug listener registered

  • Participants
  • Parent commits 405b874

Comments (0)

Files changed (1)

File brewtab-ircbot/src/main/java/com/brewtab/ircbot/Bot.java

         /* Listener for ++ and -- */
         PlusPlus plusPlus = new PlusPlus(properties);
 
-        /* Will block until connection process is complete */
-        client.connect("testbot", "bot", "kitimat", "Mr. Bot");
-
         /*
          * We can add a message handler for the client to print all messages
          * from the server if we needed to for debugging
             }
         });
 
+        /* Will block until connection process is complete */
+        client.connect("testbot", "bot", "kitimat", "Mr. Bot");
+
         /*
          * Join a channel. Channels can also be directly instantiated and
          * separately joined