diff --git a/modules/database/db_atheme.cpp b/modules/database/db_atheme.cpp index 9588f92e7..2e25b694e 100644 --- a/modules/database/db_atheme.cpp +++ b/modules/database/db_atheme.cpp @@ -764,7 +764,7 @@ private: bool HandleKL(AthemeRow &row) { // KL - /* auto id = */ row.GetNum(); + auto id = row.Get(); auto user = row.Get(); auto host = row.Get(); auto duration = row.GetNum(); @@ -782,6 +782,7 @@ private: } auto *xl = new XLine(user + "@" + host, setby, settime + duration, reason); + xl->id = id; sglinemgr->AddXLine(xl); return true; } @@ -803,7 +804,7 @@ private: // MC [] auto channel = row.Get(); auto regtime = row.GetNum(); - /* auto used = */ row.GetNum(); + auto used = row.GetNum(); auto flags = row.Get(); auto mlock_on = row.GetNum(); auto mlock_off = row.GetNum(); @@ -816,6 +817,7 @@ private: auto *ci = new ChannelInfo(channel); ci->time_registered = regtime; + ci->last_used = used; // No equivalent: elnv ApplyFlags(ci, flags, 'h', "CS_NO_EXPIRE"); @@ -1355,7 +1357,7 @@ private: bool HandleQL(AthemeRow &row) { // QL - /* auto id = */ row.GetNum(); + auto id = row.Get(); auto nick = row.Get(); auto duration = row.GetNum(); auto settime = row.GetNum(); @@ -1372,6 +1374,7 @@ private: } auto *xl = new XLine(nick, setby, settime + duration, reason); + xl->id = id; sqlinemgr->AddXLine(xl); return true; } @@ -1416,7 +1419,7 @@ private: bool HandleXL(AthemeRow &row) { // XL - /* auto id = */ row.GetNum(); + auto id = row.Get(); auto real = row.Get(); auto duration = row.GetNum(); auto settime = row.GetNum(); @@ -1433,6 +1436,7 @@ private: } auto *xl = new XLine(real, setby, settime + duration, reason); + xl->id = id; snlinemgr->AddXLine(xl); return true; }