summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Xfire/src')
-rw-r--r--protocols/Xfire/src/Xfire_base.cpp8
-rw-r--r--protocols/Xfire/src/main.cpp18
2 files changed, 13 insertions, 13 deletions
diff --git a/protocols/Xfire/src/Xfire_base.cpp b/protocols/Xfire/src/Xfire_base.cpp
index 6b2e6c43d7..ff18001f25 100644
--- a/protocols/Xfire/src/Xfire_base.cpp
+++ b/protocols/Xfire/src/Xfire_base.cpp
@@ -137,7 +137,7 @@ void Xfire_base::readUtf8StringfromDB(char*name,unsigned int dbid,char**to)
//wert aus der dblesen
sprintf_s(temp,128,"%s_%i",name,dbid);
- if(!DBGetContactSettingUTF8String(NULL, protocolname, temp,&dbv))
+ if(!db_get_utf(NULL, protocolname, temp,&dbv))
{
//string setzen
setString(dbv.pszVal,to);
@@ -155,7 +155,7 @@ void Xfire_base::readUtf8StringfromDB(char*name,unsigned int dbid,int id,char**t
//wert aus der dblesen
sprintf_s(temp,128,"%s_%i_%i",name,dbid,id);
- if(!DBGetContactSettingUTF8String(NULL, protocolname, temp,&dbv))
+ if(!db_get_utf(NULL, protocolname, temp,&dbv))
{
//string setzen
setString(dbv.pszVal,to);
@@ -198,7 +198,7 @@ void Xfire_base::writeUtf8StringtoDB(char*name,unsigned int dbid,int id,char*val
//wert aus der dblesen
sprintf_s(temp,128,"%s_%i_%i",name,dbid,id);
- DBWriteContactSettingUTF8String(NULL, protocolname, temp,val);
+ db_set_utf(NULL, protocolname, temp,val);
}
//schreibt einen stringval in die db welche unterid hat
@@ -210,7 +210,7 @@ void Xfire_base::writeUtf8StringtoDB(char*name,unsigned int dbid,char*val)
//wert aus der dblesen
sprintf_s(temp,128,"%s_%i",name,dbid);
- DBWriteContactSettingUTF8String(NULL, protocolname, temp,val);
+ db_set_utf(NULL, protocolname, temp,val);
}
diff --git a/protocols/Xfire/src/main.cpp b/protocols/Xfire/src/main.cpp
index 0c0a76ce4b..320b2cd4c3 100644
--- a/protocols/Xfire/src/main.cpp
+++ b/protocols/Xfire/src/main.cpp
@@ -1738,7 +1738,7 @@ HANDLE CList_AddContact(XFireContact xfc, bool InList, bool SetOnline,int clan)
if(strlen(xfc.nick)>0)
{
if(myClient->useutf8)
- DBWriteContactSettingUTF8String(hContact, protocolname, "Nick", xfc.nick);
+ db_set_utf(hContact, protocolname, "Nick", xfc.nick);
else
db_set_s(hContact, protocolname, "Nick", mir_utf8decode(( char* )xfc.nick,NULL));
}
@@ -2772,7 +2772,7 @@ void setBuddyStatusMsg(BuddyListEntry *entry)
db_free(&dbv);
}
}
- DBWriteContactSettingUTF8String(entry->hcontact, protocolname, "XStatusMsg", xstatus.str().c_str());
+ db_set_utf(entry->hcontact, protocolname, "XStatusMsg", xstatus.str().c_str());
}
else
{
@@ -2793,7 +2793,7 @@ void setBuddyStatusMsg(BuddyListEntry *entry)
db_set_w(entry->hcontact, protocolname, "Status", status_id);
if (!entry->statusmsg.empty())
- DBWriteContactSettingUTF8String(entry->hcontact, "CList", "StatusMsg", entry->statusmsg.c_str());
+ db_set_utf(entry->hcontact, "CList", "StatusMsg", entry->statusmsg.c_str());
else
db_unset(entry->hcontact, "CList", "StatusMsg");
}
@@ -2884,7 +2884,7 @@ HANDLE handlingBuddys(BuddyListEntry *entry, int clan,char*group,BOOL dontscan)
if(nick)
{
if(myClient->useutf8)
- DBWriteContactSettingUTF8String(hContact, protocolname, "Nick", nick);
+ db_set_utf(hContact, protocolname, "Nick", nick);
else
db_set_s(hContact, protocolname, "Nick", nick);
}
@@ -2892,7 +2892,7 @@ HANDLE handlingBuddys(BuddyListEntry *entry, int clan,char*group,BOOL dontscan)
db_set_s(hContact, protocolname, "Nick", entry->username.c_str());
//db_set_utf(hContact, protocolname, "Nick", entry->nick.c_str());
- //DBWriteContactSettingUTF8String(hContact, protocolname, "Nick", ( char* )entry->nick.c_str());
+ //db_set_utf(hContact, protocolname, "Nick", ( char* )entry->nick.c_str());
} else
db_set_s(hContact, protocolname, "Nick", entry->username.c_str());
@@ -2903,7 +2903,7 @@ HANDLE handlingBuddys(BuddyListEntry *entry, int clan,char*group,BOOL dontscan)
db_unset(hContact, protocolname, "XStatusId");
db_unset(hContact, protocolname, "XStatusName");
db_unset(hContact, "CList", "StatusMsg");
- //DBWriteContactSettingUTF8String(hContact, protocolname, "XStatusName", "");
+ //db_set_utf(hContact, protocolname, "XStatusName", "");
db_unset(hContact, protocolname, "ServerIP");
db_unset(hContact, protocolname, "Port");
db_unset(hContact, protocolname, "VServerIP");
@@ -3067,7 +3067,7 @@ HANDLE handlingBuddys(BuddyListEntry *entry, int clan,char*group,BOOL dontscan)
//db_unset(hContact, "CList", "StatusMsg");
db_set_w(hContact, protocolname, "Status", ID_STATUS_ONLINE);
- DBWriteContactSettingUTF8String(hContact, protocolname, "XStatusName", Translate("Playing"));
+ db_set_utf(hContact, protocolname, "XStatusName", Translate("Playing"));
setBuddyStatusMsg(entry);
db_set_b(hContact, protocolname, "XStatusId", xgamelist.iconmngr.getGameIconId(entry->game)+2);
@@ -3120,7 +3120,7 @@ HANDLE handlingBuddys(BuddyListEntry *entry, int clan,char*group,BOOL dontscan)
db_set_w(hContact, protocolname, "Status", ID_STATUS_ONLINE);
db_set_s(entry->hcontact, protocolname, "MirVer", "xfire");
if(clan>0) db_set_dw(hContact, protocolname, "Clan", clan);
- //DBWriteContactSettingUTF8String(hContact, "CList", "StatusMsg", "");
+ //db_set_utf(hContact, "CList", "StatusMsg", "");
db_unset(hContact, protocolname, "XStatusMsg");
db_unset(hContact, protocolname, "XStatusId");
db_unset(hContact, protocolname, "XStatusName");
@@ -3378,7 +3378,7 @@ static void SendAMAck( LPVOID param )
{
DBVARIANT dbv;
- if(!DBGetContactSettingUTF8String((HANDLE)param, protocolname, "XStatusMsg",&dbv))
+ if(!db_get_utf((HANDLE)param, protocolname, "XStatusMsg",&dbv))
{
ProtoBroadcastAck(protocolname, (HANDLE)param, ACKTYPE_AWAYMSG, ACKRESULT_SUCCESS, (HANDLE) 1, LPARAM(dbv.pszVal));
}