BanchoBot.fetchOldMessageLog - multiple declarations

Function BanchoBot.fetchOldMessageLog

Goes through the backlog and removes and optionally returns all matching objects.

Message[] fetchOldMessageLog (
  bool delegate(Message) check,
  bool returnIt = true
);

Parameters

NameDescription
check a delegate checking for which object to check for. Return true to return this object & removing it from the backlog.
returnIt pass true to return the list of objects (GC), pass false to simply return an empty list and only remove from the backlog.

Function BanchoBot.fetchOldMessageLog

Goes through the backlog and removes and optionally returns all matching objects.

Message[] fetchOldMessageLog (
  bool delegate(Message) check,
  bool returnIt = true
);

Parameters

NameDescription
check a delegate checking for which object to check for. Return true to return this object & removing it from the backlog.
returnIt pass true to return the list of objects (GC), pass false to simply return an empty list and only remove from the backlog.