[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ayttm-commits] CVS: ayttm/modules/msn2 msn.C,1.45,1.46
From: |
Colin Leroy <address@hidden> |
Subject: |
[Ayttm-commits] CVS: ayttm/modules/msn2 msn.C,1.45,1.46 |
Date: |
Fri, 24 Jan 2003 19:10:35 -0500 |
Update of /cvsroot/ayttm/ayttm/modules/msn2
In directory subversions:/tmp/cvs-serv28895/modules/msn2
Modified Files:
msn.C
Log Message:
Put back status changes because people want it :)
Index: msn.C
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/msn2/msn.C,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -r1.45 -r1.46
--- msn.C 24 Jan 2003 20:41:31 -0000 1.45
+++ msn.C 25 Jan 2003 00:10:33 -0000 1.46
@@ -1609,10 +1609,8 @@
/* UNUSED char *newHandle = NULL; */
int state=0;
char *tmp = Utf8ToStr(friendlyname);
- eb_debug(DBG_MOD, "Status change detected for %s\n", buddy);
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) {
mad = (eb_msn_account_data *)ea->protocol_account_data;
if (!strcmp(buddy, ea->account_contact->nick)) {
@@ -1634,10 +1632,13 @@
else if ((state == MSN_OFFLINE) && (mad->status != MSN_OFFLINE))
buddy_logoff(ea);
- mad->status = state;
- buddy_update_status(ea);
- eb_debug(DBG_MOD, "Buddy->online=%i\n", ea->online);
- eb_debug(DBG_MOD, "%s (%s) is now %s\n", tmp, buddy, status);
+ if (mad->status != state) {
+ mad->status = state;
+ buddy_update_status_and_log(ea);
+ eb_debug(DBG_MOD, "Buddy->online=%i\n", ea->online);
+ eb_debug(DBG_MOD, "%s (%s) is now %s\n", tmp, buddy, status);
+ }
+
free(tmp);
}
@@ -1794,11 +1795,11 @@
}
else if(ea != NULL)
{
- eb_update_status(ea, "closed window");
+ eb_update_status(ea, _("(closed window)"));
}
else if(ea!=NULL)
{
- eb_update_status(ea, "closed window");
+ eb_update_status(ea, _("(closed window)"));
}
eb_debug(DBG_MOD, "%s has now left the session\n", username);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Ayttm-commits] CVS: ayttm/modules/msn2 msn.C,1.45,1.46,
Colin Leroy <address@hidden> <=
- Prev by Date:
Re: [Ayttm-commits] CVS: ayttm ChangeLog,1.203,1.204 configure.in,1.199,1.200
- Next by Date:
[Ayttm-commits] CVS: ayttm ChangeLog,1.207,1.208 configure.in,1.203,1.204
- Previous by thread:
[Ayttm-commits] CVS: ayttm/src prefs.c,1.24,1.25
- Next by thread:
[Ayttm-commits] CVS: ayttm ChangeLog,1.207,1.208 configure.in,1.203,1.204
- Index(es):