X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_services_account.cpp;h=27d9b335e14b9a91beb5003c93e616e2ea031b4f;hb=52acbb466b84a1cd161b1c111f855d6f0419fff3;hp=8f5b830f2e109e8f8625e3d26b6ca564959e4593;hpb=403d826a8b6b94e7cfe7d4cffbbc9a843fbea66b;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_services_account.cpp b/src/modules/m_services_account.cpp index 8f5b830f2..27d9b335e 100644 --- a/src/modules/m_services_account.cpp +++ b/src/modules/m_services_account.cpp @@ -11,11 +11,11 @@ * --------------------------------------------------- */ +#include "inspircd.h" #include "users.h" #include "channels.h" #include "modules.h" #include "hashcomp.h" -#include "inspircd.h" /* $ModDesc: Povides support for ircu-style services accounts, including chmode +R, etc. */ @@ -116,7 +116,7 @@ class ModuleServicesAccount : public Module AChannel_M* m2; AUser_R* m3; public: - ModuleServicesAccount(InspIRCd* Me) : Module::Module(Me) + ModuleServicesAccount(InspIRCd* Me) : Module(Me) { m1 = new AChannel_R(ServerInstance); @@ -225,7 +225,7 @@ class ModuleServicesAccount : public Module // this method is called. We should use the ProtoSendMetaData function after we've // corrected decided how the data should look, to send the metadata on its way if // it is ours. - virtual void OnSyncUserMetaData(userrec* user, Module* proto, void* opaque, const std::string &extname) + virtual void OnSyncUserMetaData(userrec* user, Module* proto, void* opaque, const std::string &extname, bool displayable) { // check if the linking module wants to know about OUR metadata if (extname == "accountname") @@ -235,7 +235,7 @@ class ModuleServicesAccount : public Module user->GetExt("accountname", account); if (account) { - // atheme puts a space on this at logout, trim it + // remove any accidental leading/trailing spaces trim(*account); // call this function in the linking module, let it format the data how it @@ -305,7 +305,7 @@ class ModuleServicesAccount : public Module if (!dest->GetExt("accountname", text)) { text = new std::string(extdata); - // atheme puts a space on this at logout, trim it + // remove any accidental leading/trailing spaces trim(*text); dest->Extend("accountname", text); } @@ -349,7 +349,7 @@ class ModuleServicesAccountFactory : public ModuleFactory }; -extern "C" void * init_module( void ) +extern "C" DllExport void * init_module( void ) { return new ModuleServicesAccountFactory; }