62 void MessageCenter::clear(
const std::vector< std::string > &who,
const std::vector< std::string > &whoNOT )
64 if ( who.empty() && whoNOT.empty() )
67 if ( std::find( whoNOT.begin(), whoNOT.end(),
69 && ( who.empty() || std::find( who.begin(), who.end(),
messages[
i].to.get() ) != who.end() ) )
74 const std::vector< std::string > &who,
75 const std::vector< std::string > &whoNOT )
77 if ( who.empty() && whoNOT.empty() ) {
90 for (i =
messages.size()-1; i >= 0; i--)
91 if ( std::find( whoNOT.begin(), whoNOT.end(),
92 messages[i].to.get() ) == whoNOT.end()
93 && ( who.empty() || std::find( who.begin(), who.end(),
messages[i].to.get() ) != who.end() ) ) {