Mercurial > pidgin.yaz
diff src/util.c @ 3726:d85208a99af2
[gaim-migrate @ 3862]
(12:18:46) Robot101: it switches the .desktop file to the new KDE/GNOME common vfolder format
(12:18:48) Robot101: and location
(12:19:01) Robot101: and it moves a function from util.c to aim.c and makes it static
(12:19:08) Robot101: because it's only used by the main window
and removes a function herman #ifdef 0'ed, and fixes a segfault in the docklet.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Thu, 17 Oct 2002 16:25:54 +0000 |
parents | b401bd1701b4 |
children | 12b29552f1d7 |
line wrap: on
line diff
--- a/src/util.c Thu Oct 17 05:06:15 2002 +0000 +++ b/src/util.c Thu Oct 17 16:25:54 2002 +0000 @@ -806,7 +806,7 @@ " -w, --away[=MESG] make away on signon (optional argument MESG specifies\n" " name of away message to use)\n" " -l, --login[=NAME] automatically login (optional argument NAME specifies\n" - " account(s) to use)\n" + " account(s) to use, seperated by commas)\n" " -n, --loginwin don't automatically login; show login window\n" " -u, --user=NAME use account NAME\n" " -f, --file=FILE use FILE as config\n" @@ -820,43 +820,6 @@ } } - -/* <name> is a comma-separated list of names, or NULL - if NULL and there is at least one user defined in .gaimrc, try to login. - if not NULL, parse <name> into separate strings, look up each one in - .gaimrc and, if it's there, try to login. - returns: 0 if successful - -1 if no user was found that had a saved password -*/ -int do_auto_login(char *name) -{ - struct aim_user *u; - char **names, **n; - int retval = -1; - - if (name !=NULL) { /* list of names given */ - names = g_strsplit(name, ",", 32); - for (n = names; *n != NULL; n++) { - u = find_user(*n, -1); - if (u) { /* found a user */ - if (u->options & OPT_USR_REM_PASS) { - retval = 0; - serv_login(u); - } - } - } - g_strfreev(names); - } else { /* no name given, use default */ - u = (struct aim_user *)aim_users->data; - if (u->options & OPT_USR_REM_PASS) { - retval = 0; - serv_login(u); - } - } - - return retval; -} - GSList *message_split(char *message, int limit) { static GSList *ret = NULL;