X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_sqlutils.cpp;h=a65f6c24a46f98a813ea1a283fc244e03b7b4015;hb=de69e28a4a1aea89e410b693bbbb67890ecb0bd3;hp=28f32ec26cec4ef4aca644a46c05679b32f4695a;hpb=a59d08fffd3dc8a9850ce34c9928fb6382b9b37f;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_sqlutils.cpp b/src/modules/m_sqlutils.cpp index 28f32ec26..a65f6c24a 100644 --- a/src/modules/m_sqlutils.cpp +++ b/src/modules/m_sqlutils.cpp @@ -33,14 +33,12 @@ private: public: ModuleSQLutils() : idExt("sqlutils_list", this) { - ServerInstance->Modules->PublishInterface("SQLutils", this); Implementation eventlist[] = { I_OnChannelDelete, I_OnUnloadModule, I_OnUserDisconnect }; ServerInstance->Modules->Attach(eventlist, this, 3); } ~ModuleSQLutils() { - ServerInstance->Modules->UnpublishInterface("SQLutils", this); } @@ -97,7 +95,7 @@ public: } } - void OnUserDisconnect(User* user) + void OnUserDisconnect(LocalUser* user) { /* A user is disconnecting, first we need to check if they have a list of queries associated with them. * Then, if they do, we need to erase each of them from our IdUserMap (iduser) so when the module that