summaryrefslogtreecommitdiff
path: root/tipper/subst.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tipper/subst.cpp')
-rw-r--r--tipper/subst.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tipper/subst.cpp b/tipper/subst.cpp
index 92f35ef..f7e7f5d 100644
--- a/tipper/subst.cpp
+++ b/tipper/subst.cpp
@@ -147,7 +147,7 @@ TCHAR *GetStatusMessageText(HANDLE hContact) {
TCHAR *ret = 0;
DBVARIANT dbv;
if(!DBGetContactSettingTString(hContact, MODULE, "TempStatusMsg", &dbv)) {
- if(dbv.ptszVal && dbv.ptszVal[0]) {
+ if(dbv.type != DBVT_DELETED && dbv.ptszVal && dbv.ptszVal[0]) {
ret = _tcsdup(dbv.ptszVal);
StripBBCodesInPlace(ret);
} else CallContactService(hContact, PSS_GETAWAYMSG, 0, 0);