1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 12:36:38 +02:00

Fixed loading/saving XLines in db_plain

This commit is contained in:
DukePyrolator
2011-08-12 14:54:31 +02:00
parent feee50e695
commit bd4916ee84
+5 -5
View File
@@ -311,11 +311,11 @@ static void LoadOperInfo(const std::vector<Anope::string> &params)
XLineManager *xl = *it;
if (xl->Type() == type)
{
Anope::string mask = params[2];
Anope::string by = params[3];
time_t seton = params[4].is_pos_number_only() ? convertTo<time_t>(params[4]) : 0;
time_t expires = params[5].is_pos_number_only() ? convertTo<time_t>(params[5]) : 0;
Anope::string reason = params[6];
Anope::string mask = params[2] + "@" + params[3];
Anope::string by = params[4];
time_t seton = params[5].is_pos_number_only() ? convertTo<time_t>(params[5]) : 0;
time_t expires = params[6].is_pos_number_only() ? convertTo<time_t>(params[6]) : 0;
Anope::string reason = params[7];
XLine *x = xl->Add(mask, by, expires, reason);
if (x)