* Use GetLastParse() to get this value, to be used for display purposes.
*/
std::string LastParse;
- std::vector<std::string> LastParseParams;
std::vector<TranslateType> LastParseTranslate;
unsigned int sent[256];
* @return Last parsed string, as seen by users.
*/
const std::string& GetLastParse() const { return LastParse; }
- const std::vector<std::string>& GetLastParseParams() { return LastParseParams; }
const std::vector<TranslateType>& GetLastParseTranslate() { return LastParseTranslate; }
/** Add a mode to the mode parser.
ModeType type = targetchannel ? MODETYPE_CHANNEL : MODETYPE_USER;
LastParse.clear();
- LastParseParams.clear();
LastParseTranslate.clear();
LastChangeList.clear();
std::string output_mode;
std::string output_parameters;
- LastParseParams.push_back(output_mode);
LastParseTranslate.push_back(TR_TEXT);
bool adding = true;
{
output_parameters.push_back(' ');
output_parameters.append(parameter);
- LastParseParams.push_back(parameter);
LastParseTranslate.push_back(mh->GetTranslateType());
}
LastChangeList.push(mh, adding, parameter);
}
}
- LastParseParams[0] = output_mode;
-
if (!output_mode.empty())
{
LastParse = targetchannel ? targetchannel->name : targetuser->nick;