From ca49edef11ff1b76ec9fd35b6f2db47a355c5afb Mon Sep 17 00:00:00 2001 From: sje Date: Wed, 27 Jun 2007 06:44:51 +0000 Subject: fix for empty status messages from ersatz git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@214 4f64403b-2f21-0410-a795-97e2b3489a10 --- tipper/popwin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tipper/popwin.cpp') diff --git a/tipper/popwin.cpp b/tipper/popwin.cpp index 509d134..8c5b2e9 100644 --- a/tipper/popwin.cpp +++ b/tipper/popwin.cpp @@ -114,9 +114,9 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa status_msg = (char *)CallService(MS_AWAYMSG_GETSTATUSMSG, status, 0); } - if(status_msg) swzText = a2t(status_msg); + if(status_msg && status_msg[0]) swzText = a2t(status_msg); - if(swzText) { + if(swzText && swzText[0]) { StripBBCodesInPlace(swzText); pwd->rows = (RowData *) realloc(pwd->rows, sizeof(RowData) * (pwd->row_count + 1)); -- cgit v1.2.3