From abf8cd813bb0ac4f4f5451d2af929279d816abac Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 18 Apr 2018 23:04:26 +0300 Subject: core changes: - PROTOCOLDESCRIPTOR's implementation hidden inside mir_app; - Proto_RegisterModule now doesn't need a PROTOCOLDESCRIPTOR structure; - PROTOTYPE_PROTOWITHACCS type added for protos that work with accounts --- plugins/SecureIM/src/main.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'plugins/SecureIM/src/main.cpp') diff --git a/plugins/SecureIM/src/main.cpp b/plugins/SecureIM/src/main.cpp index 87a021d713..4cfa2d69b2 100644 --- a/plugins/SecureIM/src/main.cpp +++ b/plugins/SecureIM/src/main.cpp @@ -326,11 +326,7 @@ extern "C" __declspec(dllexport) int __cdecl Load(void) } // register plugin module - PROTOCOLDESCRIPTOR pd = { 0 }; - pd.cbSize = sizeof(pd); - pd.szName = (char*)MODULENAME; - pd.type = PROTOTYPE_ENCRYPTION; - Proto_RegisterModule(&pd); + Proto_RegisterModule(PROTOTYPE_ENCRYPTION, MODULENAME); // hook events HookEvent(ME_SYSTEM_MODULESLOADED, onModulesLoaded); -- cgit v1.2.3