From ff728bba88080d5cd2b272bfe2792b5651e222fe Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 14 Jun 2017 08:40:15 +0300 Subject: SeenPlugin: delimiter between protocols changed to non-printed "\n" --- plugins/SeenPlugin/src/options.cpp | 2 +- plugins/SeenPlugin/src/utils.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/SeenPlugin/src/options.cpp b/plugins/SeenPlugin/src/options.cpp index 7115fcd979..0a3b89fa8a 100644 --- a/plugins/SeenPlugin/src/options.cpp +++ b/plugins/SeenPlugin/src/options.cpp @@ -377,7 +377,7 @@ INT_PTR CALLBACK OptsSettingsDlgProc(HWND hdlg, UINT msg, WPARAM wparam, LPARAM if ((BOOL)(tvItem.state >> 12) - 1) { size += (int)mir_strlen(protocol) + 2; if (!watchedProtocols.IsEmpty()) - watchedProtocols.AppendChar(' '); + watchedProtocols.AppendChar('\n'); watchedProtocols.Append(protocol); } hItem = TreeView_GetNextSibling(hwndTreeView, hItem); diff --git a/plugins/SeenPlugin/src/utils.cpp b/plugins/SeenPlugin/src/utils.cpp index d1cf8d8a17..302dfa1dbd 100644 --- a/plugins/SeenPlugin/src/utils.cpp +++ b/plugins/SeenPlugin/src/utils.cpp @@ -32,7 +32,7 @@ void LoadWatchedProtos() if (szProtos == NULL) return; - for (char *p = strtok(szProtos, " "); p != NULL; p = strtok(NULL, " ")) + for (char *p = strtok(szProtos, "\n"); p != NULL; p = strtok(NULL, "\n")) arWatchedProtos.insert(mir_strdup(p)); } -- cgit v1.2.3