summaryrefslogtreecommitdiff
path: root/src/modules/database/dbutils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-12-19 21:16:14 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-12-19 21:16:14 +0000
commite71ae69a68419f5e42ceb93234f7c470a54ed804 (patch)
tree9360c5975a96d1bcb12e4ce07c800abc008b4326 /src/modules/database/dbutils.cpp
parent8b8a98c49ef56525d35f0482a7b43377ebb80529 (diff)
minor contacts processing improvements
git-svn-id: http://svn.miranda-ng.org/main/trunk@7291 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/database/dbutils.cpp')
-rw-r--r--src/modules/database/dbutils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/database/dbutils.cpp b/src/modules/database/dbutils.cpp
index e218b7f436..430a007ef6 100644
--- a/src/modules/database/dbutils.cpp
+++ b/src/modules/database/dbutils.cpp
@@ -149,9 +149,9 @@ static INT_PTR DbEventGetText(WPARAM wParam, LPARAM lParam)
while (buf < limit) {
ptrT tszUin(getEventString(dbei, buf));
ptrT tszNick(getEventString(dbei, buf));
- if (tszNick)
+ if (tszNick && *tszNick)
text.AppendFormat(_T("\"%s\" "), tszNick);
- if (tszUin)
+ if (tszUin && *tszUin)
text.AppendFormat(_T("<%s>; "), tszUin);
}
return (egt->datatype == DBVT_WCHAR) ? (INT_PTR)mir_tstrdup(text) : (INT_PTR)mir_t2a(text);