comparison src/server.c @ 7108:6faeeecab0dc

[gaim-migrate @ 7673] Put the rest of util.[ch] into namespaces and sectioned off the functions. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 01 Oct 2003 07:15:53 +0000
parents 9220c7490cd1
children bf630f7dfdcd
comparison
equal deleted inserted replaced
7107:9220c7490cd1 7108:6faeeecab0dc
141 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); 141 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl);
142 142
143 account = gaim_connection_get_account(gc); 143 account = gaim_connection_get_account(gc);
144 144
145 if (gaim_account_get_user_info(account) != NULL) { 145 if (gaim_account_get_user_info(account) != NULL) {
146 /* buf = strdup_withhtml(gc->user->user_info); */ 146 /* buf = gaim_strdup_withhtml(gc->user->user_info); */
147 serv_set_info(gc, gaim_account_get_user_info(account)); 147 serv_set_info(gc, gaim_account_get_user_info(account));
148 /* g_free(buf); */ 148 /* g_free(buf); */
149 } 149 }
150 150
151 if (gc->idle_timer > 0) 151 if (gc->idle_timer > 0)
1016 } 1016 }
1017 lar->sent = t; 1017 lar->sent = t;
1018 1018
1019 /* apply default fonts and colors */ 1019 /* apply default fonts and colors */
1020 tmpmsg = stylize(gc->away, MSG_LEN); 1020 tmpmsg = stylize(gc->away, MSG_LEN);
1021 serv_send_im(gc, name, away_subs(tmpmsg, alias), GAIM_IM_AUTO_RESP); 1021 serv_send_im(gc, name, gaim_str_sub_away_formatters(tmpmsg, alias), GAIM_IM_AUTO_RESP);
1022 if (!cnv && awayqueue && 1022 if (!cnv && awayqueue &&
1023 gaim_prefs_get_bool("/gaim/gtk/away/queue_messages")) { 1023 gaim_prefs_get_bool("/gaim/gtk/away/queue_messages")) {
1024 1024
1025 struct queued_message *qm; 1025 struct queued_message *qm;
1026 1026
1027 qm = g_new0(struct queued_message, 1); 1027 qm = g_new0(struct queued_message, 1);
1028 g_snprintf(qm->name, sizeof(qm->name), "%s", name); 1028 g_snprintf(qm->name, sizeof(qm->name), "%s", name);
1029 qm->message = g_strdup(away_subs(tmpmsg, alias)); 1029 qm->message = g_strdup(gaim_str_sub_away_formatters(tmpmsg, alias));
1030 qm->account = gc->account; 1030 qm->account = gc->account;
1031 qm->tm = mtime; 1031 qm->tm = mtime;
1032 qm->flags = GAIM_MESSAGE_SEND | GAIM_MESSAGE_AUTO_RESP; 1032 qm->flags = GAIM_MESSAGE_SEND | GAIM_MESSAGE_AUTO_RESP;
1033 message_queue = g_slist_append(message_queue, qm); 1033 message_queue = g_slist_append(message_queue, qm);
1034 } else if (cnv != NULL) 1034 } else if (cnv != NULL)
1035 gaim_im_write(GAIM_IM(cnv), NULL, away_subs(tmpmsg, alias), 1035 gaim_im_write(GAIM_IM(cnv), NULL, gaim_str_sub_away_formatters(tmpmsg, alias),
1036 GAIM_MESSAGE_SEND | GAIM_MESSAGE_AUTO_RESP, mtime); 1036 GAIM_MESSAGE_SEND | GAIM_MESSAGE_AUTO_RESP, mtime);
1037 1037
1038 g_free(tmpmsg); 1038 g_free(tmpmsg);
1039 } else { 1039 } else {
1040 /* 1040 /*
1376 1376
1377 if (fd) { 1377 if (fd) {
1378 if (!gaim_prefs_get_bool("/gaim/gtk/logging/strip_html")) 1378 if (!gaim_prefs_get_bool("/gaim/gtk/logging/strip_html"))
1379 fprintf(fd, 1379 fprintf(fd,
1380 _("<HR><BR><H3 Align=Center> ---- New Conversation @ %s ----</H3><BR>\n"), 1380 _("<HR><BR><H3 Align=Center> ---- New Conversation @ %s ----</H3><BR>\n"),
1381 full_date()); 1381 gaim_date_full());
1382 else 1382 else
1383 fprintf(fd, _("---- New Conversation @ %s ----\n"), full_date()); 1383 fprintf(fd, _("---- New Conversation @ %s ----\n"), gaim_date_full());
1384 1384
1385 fclose(fd); 1385 fclose(fd);
1386 } 1386 }
1387 free(filename); 1387 free(filename);
1388 } 1388 }