diff options
Diffstat (limited to 'modules/commands/cs_seen.cpp')
-rw-r--r-- | modules/commands/cs_seen.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/commands/cs_seen.cpp b/modules/commands/cs_seen.cpp index 8ae12ba7e..c3d04cf55 100644 --- a/modules/commands/cs_seen.cpp +++ b/modules/commands/cs_seen.cpp @@ -70,7 +70,7 @@ struct SeenInfo : Serializable data["message"] >> s->message; data["last"] >> s->last; - if (!s) + if (!obj) database[s->nick] = s; return s; } @@ -146,6 +146,7 @@ class CommandOSSeen : public Command if (time < buf->second->last) { Log(LOG_DEBUG) << buf->first << " was last seen " << do_strftime(buf->second->last) << ", deleting entry"; + buf->second->destroy(); database.erase(buf); counter++; } |