diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-08 11:34:37 +0200 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-08 11:34:37 +0200 |
commit | 2d0241cce00df9e38404009b1a4179d7b2b8af3c (patch) | |
tree | 97d5b4a7129a4bf8e4ddb76f778a87acc8c2125e /protocols | |
parent | e3bc77da41034b72110f3a6bf0fa9430f61f9b9e (diff) |
Dummy: added stubs for deprecated protocols
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Dummy/src/dummy_proto.cpp | 4 | ||||
-rw-r--r-- | protocols/Dummy/src/main.cpp | 48 |
2 files changed, 50 insertions, 2 deletions
diff --git a/protocols/Dummy/src/dummy_proto.cpp b/protocols/Dummy/src/dummy_proto.cpp index 9acb26d22d..d891531220 100644 --- a/protocols/Dummy/src/dummy_proto.cpp +++ b/protocols/Dummy/src/dummy_proto.cpp @@ -81,9 +81,9 @@ CDummyProto::~CDummyProto() int CDummyProto::getTemplateId() { int id = this->getByte(DUMMY_ID_TEMPLATE, 0); - if (id < 0 || id >= _countof(templates)) { + if (id < 0 || id >= _countof(templates)) return 0; - } + return id; } diff --git a/protocols/Dummy/src/main.cpp b/protocols/Dummy/src/main.cpp index 453a68b51c..f412e49ce5 100644 --- a/protocols/Dummy/src/main.cpp +++ b/protocols/Dummy/src/main.cpp @@ -77,3 +77,51 @@ extern "C" int __declspec(dllexport) Unload(void) CMPlugin g_plugin;
extern "C" _pfnCrtInit _pRawDllMain = &CMPlugin::RawDllMain;
+
+/////////////////////////////////////////////////////////////////////////////////////////
+// stubs for obsoleted protocols
+
+struct CMPluginAim : public ACCPROTOPLUGIN<CDummyProto>
+{
+ CMPluginAim() : ACCPROTOPLUGIN<CDummyProto>("AIM")
+ {
+ SetUniqueId("SN");
+ }
+}
+static g_pluginAim;
+
+struct CMPluginYahoo : public ACCPROTOPLUGIN<CDummyProto>
+{
+ CMPluginYahoo() : ACCPROTOPLUGIN<CDummyProto>("YAHOO")
+ {
+ SetUniqueId("yahoo_id");
+ }
+}
+static g_pluginYahoo;
+
+struct CMPluginTlen : public ACCPROTOPLUGIN<CDummyProto>
+{
+ CMPluginTlen() : ACCPROTOPLUGIN<CDummyProto>("TLEN")
+ {
+ SetUniqueId("jid");
+ }
+}
+static g_pluginTlen;
+
+struct CMPluginXFire : public ACCPROTOPLUGIN<CDummyProto>
+{
+ CMPluginXFire() : ACCPROTOPLUGIN<CDummyProto>("XFire")
+ {
+ SetUniqueId("Username");
+ }
+}
+static g_pluginXFire;
+
+struct CMPluginWhatsapp : public ACCPROTOPLUGIN<CDummyProto>
+{
+ CMPluginWhatsapp() : ACCPROTOPLUGIN<CDummyProto>("WhatsApp")
+ {
+ SetUniqueId("ID");
+ }
+}
+static g_pluginWhatsapp;
|