BanchoBot.fetchOldMembershipLog

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

  1. Message[] fetchOldMessageLog(bool delegate(Message) @(safe) nothrow check, bool returnIt)
  2. Quit[] fetchOldQuitLog(bool delegate(Quit) @(safe) nothrow check, bool returnIt)
  3. TopicChange[] fetchOldTopicLog(bool delegate(TopicChange) @(safe) nothrow check, bool returnIt)
  4. MembershipEvent[] fetchOldMembershipLog(bool delegate(MembershipEvent) @(safe) nothrow check, bool returnIt)
    class BanchoBot
    version(D_Ddoc)
    nothrow
    fetchOldMembershipLog
    (
    bool delegate @safe nothrow check
    ,
    bool returnIt = true
    )

Parameters

check bool delegate @safe nothrow

a delegate checking for which object to check for. Return true to return this object & removing it from the backlog.

returnIt bool

pass true to return the list of objects (GC), pass false to simply return an empty list and only remove from the backlog.

Meta