diff options
author | George Hazan <george.hazan@gmail.com> | 2015-10-28 18:22:02 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-10-28 18:22:02 +0000 |
commit | c591b27285d61aa1b4ba339b32272f2e8be14615 (patch) | |
tree | 1d83d22b69f784561d5f8d9e2d50f143f2fd069b | |
parent | a8b98cd3af1d5f40db152069184be5b7ccfae0e2 (diff) |
more correct version
git-svn-id: http://svn.miranda-ng.org/main/trunk@15639 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/Scriver/src/msgs.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp index 5d3e916df0..ecc63cbc13 100644 --- a/plugins/Scriver/src/msgs.cpp +++ b/plugins/Scriver/src/msgs.cpp @@ -237,10 +237,9 @@ static int TypingMessage(WPARAM hContact, LPARAM lParam) static int MessageSettingChanged(WPARAM hContact, LPARAM lParam)
{
DBCONTACTWRITESETTING *cws = (DBCONTACTWRITESETTING *)lParam;
- char *szProto = GetContactProto(hContact);
- if (szProto)
- if (!strcmp(cws->szModule, "CList") || !strcmp(cws->szModule, szProto))
- WindowList_Broadcast(g_dat.hMessageWindowList, DM_CLISTSETTINGSCHANGED, hContact, lParam);
+ char *szProto = GetContactProto(hContact); // szProto maybe NULL
+ if (!strcmp(cws->szModule, "CList") || !mir_strcmp(cws->szModule, szProto))
+ WindowList_Broadcast(g_dat.hMessageWindowList, DM_CLISTSETTINGSCHANGED, hContact, lParam);
return 0;
}
|