Skip to content

Commit

Permalink
Changed the "finised loading" message to be different between First l…
Browse files Browse the repository at this point in the history
…oad and reconnecting.
  • Loading branch information
DV8FromTheWorld committed Feb 27, 2016
1 parent be2acdf commit 23e1adf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/net/dv8tion/jda/handle/ReadyHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,14 @@ public void finishReady(JSONObject content)
builder.createPrivateChannel(priv_chats.getJSONObject(i));
}

JDAImpl.LOG.info("Finished (Re)Loading!"); //TODO: Replace with Logger.INFO
if (isReload)
{
JDAImpl.LOG.info("Finished (Re)Loading!");
api.getEventManager().handle(new ReconnectedEvent(api, responseNumber));
}
else
{
JDAImpl.LOG.info("Finished Loading!");
api.getEventManager().handle(new ReadyEvent(api, responseNumber));
api.getClient().ready();
}
Expand Down

0 comments on commit 23e1adf

Please sign in to comment.