[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ayttm-commits] CVS: ayttm/src chat_window.c,1.34,1.35
From: |
Colin Leroy <address@hidden> |
Subject: |
[Ayttm-commits] CVS: ayttm/src chat_window.c,1.34,1.35 |
Date: |
Fri, 24 Jan 2003 19:10:35 -0500 |
Update of /cvsroot/ayttm/ayttm/src
In directory subversions:/tmp/cvs-serv28895/src
Modified Files:
chat_window.c
Log Message:
Put back status changes because people want it :)
Index: chat_window.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/chat_window.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- chat_window.c 24 Jan 2003 15:51:43 -0000 1.34
+++ chat_window.c 25 Jan 2003 00:10:33 -0000 1.35
@@ -1327,16 +1327,22 @@
}
remote_contact->chatwindow->preferred = remote_account;
}
-
+
void eb_log_status_changed(eb_account *ea, gchar *status)
{
+ char buff[BUF_SIZE];
+ time_t my_time = time(NULL);
+
if(ea == NULL || ea->account_contact == NULL ||
ea->account_contact->chatwindow == NULL ||
ea->account_contact->chatwindow->fp == NULL)
return;
+
+ g_snprintf(buff, BUF_SIZE,_("<hr><b>%s changed status to %s @
%s.</b><hr>"),
+ ea->account_contact->nick, ((status &&
status[0])?status:_("(Online)")),
+ g_strchomp(asctime(localtime(&my_time))));
- /*eb_log_message(ea->account_contact->chatwindow, ea->handle,
- ((status && status[0])?status:"Available"));*/
+ eb_log_message(ea->account_contact->chatwindow, buff,"");
}
void eb_log_message(chat_window *cw, gchar buff[], gchar *message)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Ayttm-commits] CVS: ayttm/src chat_window.c,1.34,1.35,
Colin Leroy <address@hidden> <=
- Prev by Date:
[Ayttm-commits] CVS: ayttm ChangeLog,1.207,1.208 configure.in,1.203,1.204
- Next by Date:
[Ayttm-commits] CVS: ayttm ChangeLog,1.208,1.209 configure.in,1.204,1.205
- Previous by thread:
[Ayttm-commits] CVS: ayttm ChangeLog,1.207,1.208 configure.in,1.203,1.204
- Next by thread:
[Ayttm-commits] CVS: ayttm ChangeLog,1.208,1.209 configure.in,1.204,1.205
- Index(es):