summaryrefslogtreecommitdiff
path: root/protocols/EmLanProto
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/EmLanProto')
-rw-r--r--protocols/EmLanProto/src/mlan.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/EmLanProto/src/mlan.cpp b/protocols/EmLanProto/src/mlan.cpp
index 8b502d2fb9..60b126ff56 100644
--- a/protocols/EmLanProto/src/mlan.cpp
+++ b/protocols/EmLanProto/src/mlan.cpp
@@ -218,7 +218,7 @@ MCONTACT CMLan::FindContact(in_addr addr, const char* nick, bool add_to_list, bo
}
if (add_to_list) {
- MCONTACT res = (MCONTACT)CallService(MS_DB_CONTACT_ADD, 0, 0);
+ MCONTACT res = db_add_contact();
Proto_AddToContact(res, PROTONAME);
db_set_dw(res, PROTONAME, "ipaddr", addr.S_un.S_addr);
db_set_s(res, PROTONAME, "Nick", nick);