diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-06-27 06:44:51 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-06-27 06:44:51 +0000 |
commit | ca49edef11ff1b76ec9fd35b6f2db47a355c5afb (patch) | |
tree | 9ffc6345ababdb8618ba4e426c5df6519f21f366 /tipper/popwin.cpp | |
parent | 22fd6afd21ea20156d906797fc82d96aba51d084 (diff) |
fix for empty status messages from ersatz
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@214 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'tipper/popwin.cpp')
-rw-r--r-- | tipper/popwin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |