diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-03-01 20:50:59 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-03-01 20:50:59 +0000 |
commit | d6331b6e7bbef9facc7e6c8bdc42ed4e7b58668d (patch) | |
tree | 44032474a6abe389fcc2c5302743c019f95d7074 /protocols/Xfire/src/variables.cpp | |
parent | cbf1506b70dfa0e5e6a7ef9107b6e0f127d7724e (diff) |
XFire:
- Major cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@12294 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/variables.cpp')
-rw-r--r-- | protocols/Xfire/src/variables.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/protocols/Xfire/src/variables.cpp b/protocols/Xfire/src/variables.cpp index eff15227c4..45873fd9a4 100644 --- a/protocols/Xfire/src/variables.cpp +++ b/protocols/Xfire/src/variables.cpp @@ -103,13 +103,7 @@ char* Varxfireserverip(ARGUMENTSINFO *ai) { if (ai->cbSize < sizeof(ARGUMENTSINFO))
return NULL;
- if (ai->fi->hContact == NULL)
- {
- ai->flags = AIF_FALSE;
- return mir_strdup("");
- }
- else
- {
+ if (ai->fi->hContact != NULL) {
char temp[24];
DBVARIANT dbv3;
if (!db_get(ai->fi->hContact, protocolname, "ServerIP", &dbv3))
@@ -118,8 +112,6 @@ char* Varxfireserverip(ARGUMENTSINFO *ai) { db_free(&dbv3);
return mir_strdup(temp);
}
- ai->flags = AIF_FALSE;
- return mir_strdup("");
}
ai->flags = AIF_FALSE;
|