diff options
Diffstat (limited to 'plugins/XSoundNotify/src/xsn_main.cpp')
| -rw-r--r-- | plugins/XSoundNotify/src/xsn_main.cpp | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/XSoundNotify/src/xsn_main.cpp b/plugins/XSoundNotify/src/xsn_main.cpp index 0fda900bbd..9b121632ca 100644 --- a/plugins/XSoundNotify/src/xsn_main.cpp +++ b/plugins/XSoundNotify/src/xsn_main.cpp @@ -141,6 +141,8 @@ static int ProcessChatEvent(WPARAM, LPARAM lParam)  	MCONTACT hContact = pci->FindRoom(gcd->pszModule, gcd->ptszID);
  	if (hContact != 0) {
  		ptrT nick(db_get_tsa(hContact, gcd->pszModule, "MyNick"));
 +		if (nick == NULL || gce->ptszText == NULL)
 +			return 0;
  		if (_tcsstr(gce->ptszText, nick)) {
  			isIgnoreSound = db_get_b(hContact, SETTINGSNAME, SETTINGSIGNOREKEY, 0);
  			DBVARIANT dbv;
  | 
