Added return to avoid double logging if a guild is null.

This commit is contained in:
Andrew Lalis 2017-06-28 10:45:23 +02:00
parent ca56b5061a
commit 36f85fbe13
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ public class BotLog {
public void log(TYPE type, IGuild guild, String message){
if (guild == null){
log(type, message);
return;
}
Date date = new Date(System.currentTimeMillis());
DateFormat formatter = new SimpleDateFormat("HH:mm:ss:SSS");