summaryrefslogtreecommitdiff
path: root/utilities.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utilities.cpp')
-rw-r--r--utilities.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/utilities.cpp b/utilities.cpp
index 10349f4..9e0f7c2 100644
--- a/utilities.cpp
+++ b/utilities.cpp
@@ -65,6 +65,37 @@ int GetJabberInterface(WPARAM, LPARAM) //get interface for all jabber accounts,
return 0;
}
+int HandleNewContact(WPARAM w, LPARAM l)
+{
+ IJabberSysInterface *ijsys;
+ JabberAccount *acc = &Accounts;
+ for(int i = 0; i < GetAccountsCount(); i++)
+ {
+ if(!acc)
+ break;
+ ijsys = acc->JabberInterface->Sys();
+ if(_tcsstr(_T(JUICK_JID), ijsys->ContactToJID(HANDLE(w))))
+ ; //juick contact found, need to add xmpp traffic handlers for this account.
+ acc = acc->next;
+ }
+ return 0;
+}
+
+void FindJuickAccounts()
+{
+ IJabberSysInterface *ijsys;
+ JabberAccount *acc = &Accounts;
+ for(int i = 0; i < GetAccountsCount(); i++)
+ {
+ if(!acc)
+ break;
+ ijsys = acc->JabberInterface->Sys();
+ if(ijsys->ContactFromJID(_T(JUICK_JID)))
+ ; //juick contact found, need to add xmpp traffic handlers for this account.
+ acc = acc->next;
+ }
+}
+
BOOL JabberAccount::operator!()
{
if(!this)