comparison libpurple/protocols/sametime/sametime.c @ 25890:43b721aa4b76

explicit merge of '32d4ce0b6cfc9ccb9a6e7ed661423b9260a0bead' and '0bcc8cd8e68241cf9c13be5b28ced3a4a5d4e488'
author Richard Laager <rlaager@wiktel.com>
date Fri, 02 Jan 2009 22:28:34 +0000
parents f8dbd57cf635 4455637864b4
children 2d4f0dd04334
comparison
equal deleted inserted replaced
25889:e2b193decaa5 25890:43b721aa4b76
3739 3739
3740 /* while we do support images, the default is to not offer it */ 3740 /* while we do support images, the default is to not offer it */
3741 gc->flags |= PURPLE_CONNECTION_NO_IMAGES; 3741 gc->flags |= PURPLE_CONNECTION_NO_IMAGES;
3742 3742
3743 user = g_strdup(purple_account_get_username(account)); 3743 user = g_strdup(purple_account_get_username(account));
3744 pass = g_strdup(purple_account_get_password(account));
3745 3744
3746 host = strrchr(user, ':'); 3745 host = strrchr(user, ':');
3747 if(host) { 3746 if(host) {
3748 /* annoying user split from 1.2.0, need to undo it */ 3747 /* annoying user split from 1.2.0, need to undo it */
3749 *host++ = '\0'; 3748 *host++ = '\0';
3756 } 3755 }
3757 3756
3758 if(! host || ! *host) { 3757 if(! host || ! *host) {
3759 /* somehow, we don't have a host to connect to. Well, we need one 3758 /* somehow, we don't have a host to connect to. Well, we need one
3760 to actually continue, so let's ask the user directly. */ 3759 to actually continue, so let's ask the user directly. */
3760 g_free(user);
3761 prompt_host(gc); 3761 prompt_host(gc);
3762 return; 3762 return;
3763 } 3763 }
3764 3764
3765 pass = g_strdup(purple_account_get_password(account));
3765 port = purple_account_get_int(account, MW_KEY_PORT, MW_PLUGIN_DEFAULT_PORT); 3766 port = purple_account_get_int(account, MW_KEY_PORT, MW_PLUGIN_DEFAULT_PORT);
3766 3767
3767 DEBUG_INFO("user: '%s'\n", user); 3768 DEBUG_INFO("user: '%s'\n", user);
3768 DEBUG_INFO("host: '%s'\n", host); 3769 DEBUG_INFO("host: '%s'\n", host);
3769 DEBUG_INFO("port: %u\n", port); 3770 DEBUG_INFO("port: %u\n", port);