+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 :)
+void HubFrame: :on(StatusMessa ge, Client*, const string& line, int statusFlags) throw() { FILTER_ MESSAGES) && ClientListener: :FLAG_IS_ SPAM) { SILENT_ STATUS_ LINE, line); CHAT_LINE, Util::formatMes sage(from. getIdentity( ).getNick( ), msg, thirdPerson)); STATUS_ LINE, line);
+ if(SETTING(
+ speak(ADD_
} else {
- speak(ADD_
+ speak(ADD_
}
}
This is wrong; I think you mean: FILTER_ MESSAGES) && (statusFlags & ClientListener: :FLAG_IS_ SPAM))
if(SETTING(
otherwise, it reduces to just checking if FILTER_MESSAGES is true :)