Added return to avoid double logging if a guild is null.
This commit is contained in:
parent
ca56b5061a
commit
36f85fbe13
|
@ -89,6 +89,7 @@ public class BotLog {
|
||||||
public void log(TYPE type, IGuild guild, String message){
|
public void log(TYPE type, IGuild guild, String message){
|
||||||
if (guild == null){
|
if (guild == null){
|
||||||
log(type, message);
|
log(type, message);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
Date date = new Date(System.currentTimeMillis());
|
Date date = new Date(System.currentTimeMillis());
|
||||||
DateFormat formatter = new SimpleDateFormat("HH:mm:ss:SSS");
|
DateFormat formatter = new SimpleDateFormat("HH:mm:ss:SSS");
|
||||||
|
|
Loading…
Reference in New Issue