diff options
-rw-r--r-- | modules/database/db_old.cpp | 3 | ||||
-rw-r--r-- | src/extensible.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/modules/database/db_old.cpp b/modules/database/db_old.cpp index c017eb681..a6627bb8b 100644 --- a/modules/database/db_old.cpp +++ b/modules/database/db_old.cpp @@ -450,7 +450,8 @@ static void LoadNicks() nc->email = buffer; READ(read_string(buffer, f)); - nc->Extend<Anope::string>("greet", buffer); + if (!buffer.empty()) + nc->Extend<Anope::string>("greet", buffer); uint32_t u32; READ(read_uint32(&u32, f)); diff --git a/src/extensible.cpp b/src/extensible.cpp index d977e0b3c..50b280c56 100644 --- a/src/extensible.cpp +++ b/src/extensible.cpp @@ -66,7 +66,7 @@ bool* Extensible::Extend(const Anope::string &name, const bool &what) if (ref) return ref->Set(this); - Log(LOG_DEBUG) << "Shrink for nonexistant type " << name << " on " << static_cast<void *>(this); + Log(LOG_DEBUG) << "Extend for nonexistant type " << name << " on " << static_cast<void *>(this); return NULL; } |