From e80a1296a096ff2c495b3cd2a3913d5e5f6ec450 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 14 Oct 2009 18:39:38 +0000 Subject: Move static map of extensions into ServerInstance, add const-correctness git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11873 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_sslinfo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_sslinfo.cpp') diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp index a1178f917..31a209d4e 100644 --- a/src/modules/m_sslinfo.cpp +++ b/src/modules/m_sslinfo.cpp @@ -19,7 +19,7 @@ class SSLCertExt : public ExtensionItem { public: SSLCertExt(Module* parent) : ExtensionItem("ssl_cert", parent) {} - ssl_cert* get(const Extensible* item) + ssl_cert* get(const Extensible* item) const { return static_cast(get_raw(item)); } @@ -29,7 +29,7 @@ class SSLCertExt : public ExtensionItem { delete old; } - std::string serialize(SerializeFormat format, const Extensible* container, void* item) + std::string serialize(SerializeFormat format, const Extensible* container, void* item) const { return static_cast(item)->GetMetaLine(); } @@ -121,7 +121,7 @@ class ModuleSSLInfo : public Module { ServerInstance->AddCommand(&cmd); - Extensible::Register(&cmd.CertExt); + ServerInstance->Extensions.Register(&cmd.CertExt); Implementation eventlist[] = { I_OnWhois, I_OnPreCommand }; ServerInstance->Modules->Attach(eventlist, this, 2); -- cgit v1.2.3