ayttm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ayttm-commits] CVS: ayttm/modules/yahoo2 yahoo.c,1.5,1.6


From: Colin Leroy <address@hidden>
Subject: [Ayttm-commits] CVS: ayttm/modules/yahoo2 yahoo.c,1.5,1.6
Date: Mon, 13 Jan 2003 00:46:00 -0500

Update of /cvsroot/ayttm/ayttm/modules/yahoo2
In directory subversions:/tmp/cvs-serv4410/modules/yahoo2

Modified Files:
        yahoo.c 
Log Message:
send typing status in chatrooms


Index: yahoo.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/yahoo2/yahoo.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- yahoo.c     10 Jan 2003 23:43:56 -0000      1.5
+++ yahoo.c     13 Jan 2003 05:45:57 -0000      1.6
@@ -1410,6 +1410,21 @@
        return 20;
 }
 
+int eb_yahoo_send_cr_typing(eb_chat_room *chatroom)
+{
+       eb_yahoo_chat_room_data *ycrd = chatroom->protocol_local_chat_room_data;
+       eb_local_account *ela = yahoo_find_local_account_by_id(ycrd->id);
+       eb_yahoo_local_account_data * ylad = ela->protocol_local_account_data;
+       GList *others;  
+       for (others = chatroom->fellows; others && others->data; 
others=others->next) {
+               eb_chat_room_buddy * ecrb = others->data;
+               eb_account *to = find_account_by_handle(ecrb->handle, 
SERVICE_INFO.protocol_id);
+               eb_yahoo_send_typing(ela,to);
+       }
+
+       return 20;
+}
+
 void ext_yahoo_typing_notify(int id, char *who, int stat)
 {
        eb_account *ea = find_account_by_handle(who, SERVICE_INFO.protocol_id);
@@ -2458,6 +2473,7 @@
 
        sc->send_im                     = eb_yahoo_send_im;
        sc->send_typing                 = eb_yahoo_send_typing;
+       sc->send_cr_typing              = eb_yahoo_send_cr_typing;
 
        sc->read_local_account_config   = eb_yahoo_read_local_account_config;
        sc->write_local_config          = eb_yahoo_write_local_config;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]