ayttm-commits
[Top][All Lists]
Advanced

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

[Ayttm-commits] CVS: ayttm/modules/aim-toc aim-toc.c,1.1.1.1,1.2


From: Colin Leroy <address@hidden>
Subject: [Ayttm-commits] CVS: ayttm/modules/aim-toc aim-toc.c,1.1.1.1,1.2
Date: Fri, 27 Dec 2002 11:46:54 -0500

Update of /cvsroot/ayttm/ayttm/modules/aim-toc
In directory subversions:/tmp/cvs-serv26423/modules/aim-toc

Modified Files:
        aim-toc.c 
Log Message:
big commit, see ChangeLog


Index: aim-toc.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/aim-toc/aim-toc.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- aim-toc.c   23 Dec 2002 22:04:36 -0000      1.1.1.1
+++ aim-toc.c   27 Dec 2002 16:46:51 -0000      1.2
@@ -840,24 +840,25 @@
 
        eb_local_account * ela = g_new0(eb_local_account, 1);
        char * c = NULL;
+       char buff[1024];
        struct eb_aim_local_account_data * ala = g_new0(struct 
eb_aim_local_account_data, 1);
        strcpy(ala->aim_info,  "Visit the Everybuddy website at <a 
href=\"http://www.everybuddy.com\";>www.everybuddy.com</a>");
 
        
        eb_debug(DBG_TOC, "eb_aim_read_local_config: entering\n");      
-    /*you know, eventually error handling should be put in here*/
-    ela->handle=strdup(value_pair_get_value(pairs, "SCREEN_NAME"));
+       /*you know, eventually error handling should be put in here*/
+       ela->handle=strdup(value_pair_get_value(pairs, "SCREEN_NAME"));
        strncpy(ela->alias, ela->handle, 255);
-    strncpy(ala->password, value_pair_get_value(pairs, "PASSWORD"), 255);
+       strncpy(ala->password, value_pair_get_value(pairs, "PASSWORD"), 255);
 
 
        c = value_pair_get_value(pairs, "PROFILE");
-       if(c)
-       {       
+       if(c) { 
                strncpy(ala->aim_info, c, MAX_PREF_LEN);
        }
 
-       eb_add_menu_item(ela->alias, EB_PROFILE_MENU, aim_set_profile_window, 
ebmPROFILEDATA, ebmProfileData_new(ela));
+       snprintf(buff, sizeof(buff), "%s [AIM]", ela->alias);
+       eb_add_menu_item(strdup(buff), EB_PROFILE_MENU, aim_set_profile_window, 
ebmPROFILEDATA, ebmProfileData_new(ela));
 
     ela->service_id = SERVICE_INFO.protocol_id;
     ela->protocol_local_account_data = ala;




reply via email to

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