summaryrefslogtreecommitdiff
path: root/plugins/Sessions/Src/Main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Sessions/Src/Main.cpp')
-rw-r--r--plugins/Sessions/Src/Main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Sessions/Src/Main.cpp b/plugins/Sessions/Src/Main.cpp
index c8afec37ea..ed2284efd0 100644
--- a/plugins/Sessions/Src/Main.cpp
+++ b/plugins/Sessions/Src/Main.cpp
@@ -540,7 +540,7 @@ int LoadSession(WPARAM, LPARAM lparam)
MCONTACT hContact;
MCONTACT session_list_t[255] = { 0 };
int mode = 0;
- if ((int)lparam >= g_ses_limit&&lparam != 256) {
+ if ((int)lparam >= g_ses_limit && lparam != 256) {
mode = 1;
lparam -= g_ses_limit;
}
@@ -575,7 +575,7 @@ int LoadSession(WPARAM, LPARAM lparam)
}
if (dup == i) {
- if (!hidden) {
+ if (!hidden[i]) {
if (g_bOtherWarnings)
MessageBox(NULL, TranslateT("This Session already opened"), TranslateT("Sessions Manager"), MB_OK | MB_ICONWARNING);
return 1;