summaryrefslogtreecommitdiff
path: root/MirOTR/dllmain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'MirOTR/dllmain.cpp')
-rw-r--r--MirOTR/dllmain.cpp23
1 files changed, 13 insertions, 10 deletions
diff --git a/MirOTR/dllmain.cpp b/MirOTR/dllmain.cpp
index 1f3c131..2982789 100644
--- a/MirOTR/dllmain.cpp
+++ b/MirOTR/dllmain.cpp
@@ -59,6 +59,8 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) {
if(ServiceExists(MS_MC_GETPROTOCOLNAME))
g_metaproto = (char *)CallService(MS_MC_GETPROTOCOLNAME, 0, 0);
+ // DISABLED UPDATE CHECK FOR NOW
+ /*
if(ServiceExists(MS_UPDATE_REGISTER)) {
// register with updater
Update update = {0};
@@ -69,7 +71,7 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) {
update.szComponentName = pluginInfo.shortName;
update.pbVersion = (BYTE *)CreateVersionString(pluginInfo.version, szVersion);
update.cpbVersion = strlen((char *)update.pbVersion);
- update.szBetaChangelogURL = "https://server.scottellis.com.au/wsvn/mim_plugs/otr/?op=log&rev=0&sc=0&isdir=1";
+ update.szBetaChangelogURL = "http://code.google.com/p/mirotr/source/list";
update.szUpdateURL = UPDATER_AUTOREGISTER;
@@ -77,16 +79,15 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) {
// before the version that we use to locate it on the page
// (note that if the update URL and the version URL point to standard file listing entries, the backend xml
// data will be used to check for updates rather than the actual web page - this is not true for beta urls)
- update.szBetaUpdateURL = "http://www.scottellis.com.au/miranda_plugins/otr.zip";
- update.szBetaVersionURL = "http://www.scottellis.com.au/miranda_plugins/ver_otr.html";
- update.pbBetaVersionPrefix = (BYTE *)"OTR (Off The Record) encryption plugin, version ";
+ update.szBetaUpdateURL = "http://www.progandy.co.cc/mirotr/download.php"; // redirection script to current release on GoogleCode
+ update.szBetaVersionURL = "http://www.progandy.co.cc/mirotr/version.txt";
+ update.pbBetaVersionPrefix = "MirOTR version: ";
- update.cpbBetaVersionPrefix = strlen((char *)update.pbBetaVersionPrefix);
+ update.cpbBetaVersionPrefix = strlen(update.pbBetaVersionPrefix);
-
- // DISABLED UPDATE CHECK FOR NOW
- // CallService(MS_UPDATE_REGISTER, 0, (WPARAM)&update);
+ CallService(MS_UPDATE_REGISTER, 0, (WPARAM)&update);
}
+ */
InitUtils();
@@ -144,7 +145,6 @@ DLLFUNC int Load(PLUGINLINK *link)
CallService(MS_PROTO_REGISTERMODULE,0,(LPARAM)&pd);
// remove us as a filter to all contacts - fix filter type problem
- /*
if(DBGetContactSettingByte(0, MODULENAME, "FilterOrderFix", 0) != 2) {
HANDLE hContact = ( HANDLE )CallService( MS_DB_CONTACT_FINDFIRST, 0, 0 );
while ( hContact != NULL ) {
@@ -153,14 +153,17 @@ DLLFUNC int Load(PLUGINLINK *link)
}
DBWriteContactSettingByte(0, MODULENAME, "FilterOrderFix", 2);
}
- */
+
// add us as a filter to all contacts
HANDLE hContact = ( HANDLE )CallService( MS_DB_CONTACT_FINDFIRST, 0, 0 );
char *proto;
while ( hContact != NULL ) {
proto = (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0);
+
+ // do not add filter to chatoom
if ( !(proto && DBGetContactSettingByte(hContact, proto, "ChatRoom", 0)) )
CallService( MS_PROTO_ADDTOCONTACT, ( WPARAM )hContact, ( LPARAM )MODULENAME );
+
hContact = ( HANDLE )CallService( MS_DB_CONTACT_FINDNEXT,( WPARAM )hContact, 0 );
}
HookEvent(ME_DB_CONTACT_ADDED, NewContact);