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.16,1.17


From: Philip S Tellis <address@hidden>
Subject: [Ayttm-commits] CVS: ayttm/modules/yahoo2 yahoo.c,1.16,1.17
Date: Tue, 21 Jan 2003 07:01:51 -0500

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

Modified Files:
        yahoo.c 
Log Message:
yahoo group rename done.  now wait for the core

Index: yahoo.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/yahoo2/yahoo.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- yahoo.c     20 Jan 2003 10:02:16 -0000      1.16
+++ yahoo.c     21 Jan 2003 12:01:23 -0000      1.17
@@ -2015,6 +2015,27 @@
        }
 }
 
+void eb_yahoo_group_rename(gchar *old_group, gchar *new_group)
+{
+       GList *node;
+
+       for (node = accounts; node; node = node->next) {
+               eb_local_account *ela = node->data;
+               eb_yahoo_local_account_data *ylad;
+               
+               if (!ela->connected || ela->service_id != 
SERVICE_INFO.protocol_id)
+                       continue;
+
+               ylad = ela->protocol_local_account_data;
+
+               yahoo_group_rename(ylad->id, old_group, new_group);
+
+               yahoo_refresh(ylad->id);
+
+               return;
+       }
+}
+
 eb_account *eb_yahoo_new_account(gchar * account)
 {
        eb_account *acct = g_new0(eb_account, 1);
@@ -2527,6 +2548,8 @@
        sc->ignore_user                 = NULL;
        sc->unignore_user               = NULL;
        sc->change_group                = eb_yahoo_change_group;
+       /*sc->group_rename              = eb_yahoo_group_rename; */
+       sc->del_group                   = NULL;
 
        sc->is_suitable                 = NULL;
        sc->new_account                 = eb_yahoo_new_account;





reply via email to

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