summaryrefslogtreecommitdiff
path: root/plugins/!NotAdopted/Xfire/xfiretest/variables.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/!NotAdopted/Xfire/xfiretest/variables.cpp')
-rw-r--r--plugins/!NotAdopted/Xfire/xfiretest/variables.cpp168
1 files changed, 0 insertions, 168 deletions
diff --git a/plugins/!NotAdopted/Xfire/xfiretest/variables.cpp b/plugins/!NotAdopted/Xfire/xfiretest/variables.cpp
deleted file mode 100644
index d8479b7dc6..0000000000
--- a/plugins/!NotAdopted/Xfire/xfiretest/variables.cpp
+++ /dev/null
@@ -1,168 +0,0 @@
-//fürs varaibles händling - dufte
-#include "stdafx.h"
-
-#include "variables.h"
-#include <string>
-
-using namespace std;
-
-char* Varxfiregame(ARGUMENTSINFO *ai)
-{
- if (ai->cbSize < sizeof(ARGUMENTSINFO))
- return NULL;
-
- if(ai->fi->hContact==NULL)
- {
- //
- }
- else
- {
- char temp[256];
- DBVARIANT dbv3;
- if(!DBGetContactSetting(ai->fi->hContact,protocolname, "RGame",&dbv3))
- {
- strncpy(temp,dbv3.pszVal,255);
- DBFreeVariant(&dbv3);
- return mir_strdup(temp);
- }
- }
-
- ai->flags = AIF_FALSE;
- return mir_strdup("");
-}
-
-char* Varmyxfiregame(ARGUMENTSINFO *ai)
-{
- if (ai->cbSize < sizeof(ARGUMENTSINFO))
- return NULL;
-
- DBVARIANT dbv3;
- if(!DBGetContactSetting(NULL,protocolname, "currentgamename",&dbv3))
- {
- char* ret=mir_strdup(dbv3.pszVal);
- DBFreeVariant(&dbv3);
- return ret;
- }
- ai->flags = AIF_FALSE;
- return mir_strdup("");
-}
-
-char* Varxfirevoice(ARGUMENTSINFO *ai)
-{
- if (ai->cbSize < sizeof(ARGUMENTSINFO))
- return NULL;
-
- DBVARIANT dbv3;
- if(!DBGetContactSetting(ai->fi->hContact,protocolname, "RVoice",&dbv3))
- {
- char* ret=mir_strdup(dbv3.pszVal);
- DBFreeVariant(&dbv3);
- return ret;
- }
-
- ai->flags = AIF_FALSE;
- return mir_strdup("");
-}
-
-
-char* Varmyxfirevoiceip(ARGUMENTSINFO *ai) {
- if (ai->cbSize < sizeof(ARGUMENTSINFO))
- return NULL;
-
- DBVARIANT dbv3;
- if(!DBGetContactSetting(NULL,protocolname, "VServerIP",&dbv3))
- {
- char* ret=mir_strdup(dbv3.pszVal);
- DBFreeVariant(&dbv3);
- return ret;
- }
-
- ai->flags = AIF_FALSE;
- return mir_strdup("");
-}
-
-char* Varmyxfireserverip(ARGUMENTSINFO *ai) {
- if (ai->cbSize < sizeof(ARGUMENTSINFO))
- return NULL;
-
- DBVARIANT dbv3;
- if(!DBGetContactSetting(NULL,protocolname, "ServerIP",&dbv3))
- {
- char* ret=mir_strdup(dbv3.pszVal);
- DBFreeVariant(&dbv3);
- return ret;
- }
-
- ai->flags = AIF_FALSE;
- return mir_strdup("");
-}
-
-char* Varxfireserverip(ARGUMENTSINFO *ai) {
- if (ai->cbSize < sizeof(ARGUMENTSINFO))
- return NULL;
-
- if(ai->fi->hContact==NULL)
- {
- ai->flags = AIF_FALSE;
- return mir_strdup("");
- }
- else
- {
- char temp[24];
- DBVARIANT dbv3;
- if(!DBGetContactSetting(ai->fi->hContact,protocolname, "ServerIP",&dbv3))
- {
- sprintf(temp,"%s:%d",dbv3.pszVal,DBGetContactSettingWord(ai->fi->hContact,protocolname, "Port",0));
- DBFreeVariant(&dbv3);
- return mir_strdup(temp);
- }
- ai->flags = AIF_FALSE;
- return mir_strdup("");
- }
-
- ai->flags = AIF_FALSE;
- return mir_strdup("");
-}
-
-char* Varxfirevoiceip(ARGUMENTSINFO *ai) {
- if (ai->cbSize < sizeof(ARGUMENTSINFO))
- return NULL;
-
- if(ai->fi->hContact==NULL)
- {
- ai->flags = AIF_FALSE;
- return mir_strdup("");
- }
- else
- {
- char temp[24];
- DBVARIANT dbv3;
- if(!DBGetContactSetting(ai->fi->hContact,protocolname, "VServerIP",&dbv3))
- {
- sprintf(temp,"%s:%d",dbv3.pszVal,DBGetContactSettingWord(ai->fi->hContact,protocolname, "VPort",0));
- DBFreeVariant(&dbv3);
- return mir_strdup(temp);
- }
- ai->flags = AIF_FALSE;
- return mir_strdup("");
- }
-
- ai->flags = AIF_FALSE;
- return mir_strdup("");
-}
-
-char* Varmyxfirevoice(ARGUMENTSINFO *ai)
-{
- if (ai->cbSize < sizeof(ARGUMENTSINFO))
- return NULL;
-
- DBVARIANT dbv3;
- if(!DBGetContactSetting(NULL,protocolname, "currentvoicename",&dbv3))
- {
- char* ret=mir_strdup(dbv3.pszVal);
- DBFreeVariant(&dbv3);
- return ret;
- }
-
- return mir_strdup("");
-} \ No newline at end of file