[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ayttm-commits] CVS: ayttm/modules/msn2 msn.C,1.30,1.31
From: |
Colin Leroy <address@hidden> |
Subject: |
[Ayttm-commits] CVS: ayttm/modules/msn2 msn.C,1.30,1.31 |
Date: |
Wed, 15 Jan 2003 09:04:50 -0500 |
Update of /cvsroot/ayttm/ayttm/modules/msn2
In directory subversions:/tmp/cvs-serv14540/modules/msn2
Modified Files:
msn.C
Log Message:
Rename contacts to friendlyname when
their name equals their account name
Index: msn.C
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/msn2/msn.C,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- msn.C 15 Jan 2003 13:12:21 -0000 1.30
+++ msn.C 15 Jan 2003 14:04:47 -0000 1.31
@@ -1523,10 +1523,12 @@
state=get_status_num(status);
ea = find_account_by_handle(buddy, SERVICE_INFO.protocol_id);
eb_debug(DBG_MOD, "First call to find_account_by_handle returned %p\n",
ea);
- if (ea)
+ if (ea) {
mad = (eb_msn_account_data *)ea->protocol_account_data;
- else
- {
+ if (!strcmp(buddy, ea->account_contact->nick)) {
+ rename_contact(ea->account_contact, friendlyname);
+ }
+ } else {
eb_debug(DBG_MOD, "ea not found, creating new account\n");
ea = eb_msn_new_account(buddy);
mad = (eb_msn_account_data *)ea->protocol_account_data;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Ayttm-commits] CVS: ayttm/modules/msn2 msn.C,1.30,1.31,
Colin Leroy <address@hidden> <=
- Prev by Date:
[Ayttm-commits] CVS: ayttm ChangeLog,1.120,1.121 configure.in,1.117,1.118
- Next by Date:
[Ayttm-commits] CVS: ayttm ChangeLog,1.121,1.122 configure.in,1.118,1.119
- Previous by thread:
[Ayttm-commits] CVS: ayttm ChangeLog,1.120,1.121 configure.in,1.117,1.118
- Next by thread:
[Ayttm-commits] CVS: ayttm ChangeLog,1.121,1.122 configure.in,1.118,1.119
- Index(es):