diff options
-rw-r--r-- | src/modules/extra/m_geo_maxmind.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/extra/m_geo_maxmind.cpp b/src/modules/extra/m_geo_maxmind.cpp index 2850e0501..6f5d4ef20 100644 --- a/src/modules/extra/m_geo_maxmind.cpp +++ b/src/modules/extra/m_geo_maxmind.cpp @@ -43,6 +43,12 @@ class GeolocationExtItem : public ExtensionItem { } + std::string ToHuman(const Extensible* container, void* item) const CXX11_OVERRIDE + { + Geolocation::Location* location = static_cast<Geolocation::Location*>(item); + return location->GetName() + " [" + location->GetCode() + "]"; + } + void free(Extensible* container, void* item) CXX11_OVERRIDE { Geolocation::Location* old = static_cast<Geolocation::Location*>(item); |