Comment 8 for bug 190469

Revision history for this message
Pseudonym (404emailnotfound) wrote :

+void HubFrame::on(StatusMessage, Client*, const string& line, int statusFlags) throw() {
+ if(SETTING(FILTER_MESSAGES) && ClientListener::FLAG_IS_SPAM) {
+ speak(ADD_SILENT_STATUS_LINE, line);
  } else {
- speak(ADD_CHAT_LINE, Util::formatMessage(from.getIdentity().getNick(), msg, thirdPerson));
+ speak(ADD_STATUS_LINE, line);
  }
 }

This is wrong; I think you mean:
if(SETTING(FILTER_MESSAGES) && (statusFlags & ClientListener::FLAG_IS_SPAM))

otherwise, it reduces to just checking if FILTER_MESSAGES is true :)