summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-06-17 17:12:09 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-06-17 17:12:09 +0300
commitf6d98c0326bac0275d5f08243abeef1da3707975 (patch)
tree026bb25244a812423c7c5c2d984512a37aa54e74
parent6a2de5d771e26b11f1318db28aecab86a83e348e (diff)
modified: init.cpp
modified: utilities.cpp
-rw-r--r--init.cpp2
-rw-r--r--utilities.cpp2
2 files changed, 1 insertions, 3 deletions
diff --git a/init.cpp b/init.cpp
index 4ccdd0a..80ad08f 100644
--- a/init.cpp
+++ b/init.cpp
@@ -24,9 +24,7 @@ static HANDLE hAccountsChanges, hDbContactAdded;
PLUGINLINK *pluginLink;
static int OnModulesLoaded(WPARAM wParam,LPARAM lParam);
extern char *date();
-//IJabberInterface *JabberInterface[10];
JabberAccount Accounts;
-//TCHAR *JabberAccountName
int JabberAccountsCount = 0;
struct MM_INTERFACE mmi;
diff --git a/utilities.cpp b/utilities.cpp
index 7d9b85c..afac552 100644
--- a/utilities.cpp
+++ b/utilities.cpp
@@ -61,7 +61,7 @@ int GetJabberInterface(WPARAM, LPARAM) //get interface for all jabber accounts,
}
mir_free(tmp);
}
- while(GetAccountsCount() > i) //cleanup unused accounts
+ if(GetAccountsCount() > i) //cleanup unused accounts
{
JabberAccount *acc = &Accounts, *acc2;
for(int a = 0; a <= i; a++)