diff options
Diffstat (limited to 'plugins/SeenPlugin/src/options.cpp')
-rw-r--r-- | plugins/SeenPlugin/src/options.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/plugins/SeenPlugin/src/options.cpp b/plugins/SeenPlugin/src/options.cpp index 765fedb421..e3e2ef05b5 100644 --- a/plugins/SeenPlugin/src/options.cpp +++ b/plugins/SeenPlugin/src/options.cpp @@ -342,22 +342,11 @@ public: g_plugin.setByte("IdleSupport", IsDlgButtonChecked(m_hwnd, IDC_IDLESUPPORT));
// save protocol list
- CMStringA watchedProtocols;
-
int nItems = protocols.GetItemCount();
- for (int i=0; i < nItems; i++) {
- if (!protocols.GetCheckState(i))
- continue;
-
+ for (int i = 0; i < nItems; i++) {
char *szProto = (char *)protocols.GetItemData(i);
- if (!watchedProtocols.IsEmpty())
- watchedProtocols.AppendChar('\n');
- watchedProtocols.Append(szProto);
+ db_set_b(0, szProto, MODULENAME "Enabled", protocols.GetCheckState(i));
}
- g_plugin.setString("WatchedAccounts", watchedProtocols);
-
- UnloadWatchedProtos();
- LoadWatchedProtos();
return true;
}
|