diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/database/dbutils.cpp | 4 |
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);
|