summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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++)