src/log.c

changeset 4687
91ad36873636
parent 4635
475ccd9dc3ac
child 4793
1da93f6c80f3
equal deleted inserted replaced
4686:73697fa39752 4687:91ad36873636
326 case log_quit: 326 case log_quit:
327 g_snprintf(text, sizeof(text), _("+++ Program exit @ %s"), full_date()); 327 g_snprintf(text, sizeof(text), _("+++ Program exit @ %s"), full_date());
328 g_snprintf(html, sizeof(html), "<I><FONT COLOR=GRAY>%s</FONT></I>", text); 328 g_snprintf(html, sizeof(html), "<I><FONT COLOR=GRAY>%s</FONT></I>", text);
329 break; 329 break;
330 } 330 }
331 } else if (get_buddy_alias_only(who)) { 331 } else if (gaim_get_buddy_alias_only(who)) {
332 switch (what) { 332 switch (what) {
333 case log_signon: 333 case log_signon:
334 g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) signed on @ %s"), 334 g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) signed on @ %s"),
335 gc->username, gc->prpl->name, get_buddy_alias(who), who->name, full_date()); 335 gc->username, gc->prpl->name, gaim_get_buddy_alias(who), who->name, full_date());
336 g_snprintf(html, sizeof(html), "<B>%s</B>", text); 336 g_snprintf(html, sizeof(html), "<B>%s</B>", text);
337 break; 337 break;
338 case log_signoff: 338 case log_signoff:
339 g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) signed off @ %s"), 339 g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) signed off @ %s"),
340 gc->username, gc->prpl->name, get_buddy_alias(who), who->name, full_date()); 340 gc->username, gc->prpl->name, gaim_get_buddy_alias(who), who->name, full_date());
341 g_snprintf(html, sizeof(html), "<I><FONT COLOR=GRAY>%s</FONT></I>", text); 341 g_snprintf(html, sizeof(html), "<I><FONT COLOR=GRAY>%s</FONT></I>", text);
342 break; 342 break;
343 case log_away: 343 case log_away:
344 g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) went away @ %s"), 344 g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) went away @ %s"),
345 gc->username, gc->prpl->name, get_buddy_alias(who), who->name, full_date()); 345 gc->username, gc->prpl->name, gaim_get_buddy_alias(who), who->name, full_date());
346 g_snprintf(html, sizeof(html), "<FONT COLOR=OLIVE>%s</FONT>", text); 346 g_snprintf(html, sizeof(html), "<FONT COLOR=OLIVE>%s</FONT>", text);
347 break; 347 break;
348 case log_back: 348 case log_back:
349 g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) came back @ %s"), 349 g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) came back @ %s"),
350 gc->username, gc->prpl->name, get_buddy_alias(who), who->name, full_date()); 350 gc->username, gc->prpl->name, gaim_get_buddy_alias(who), who->name, full_date());
351 g_snprintf(html, sizeof(html), "%s", text); 351 g_snprintf(html, sizeof(html), "%s", text);
352 break; 352 break;
353 case log_idle: 353 case log_idle:
354 g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) became idle @ %s"), 354 g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) became idle @ %s"),
355 gc->username, gc->prpl->name, get_buddy_alias(who), who->name, full_date()); 355 gc->username, gc->prpl->name, gaim_get_buddy_alias(who), who->name, full_date());
356 g_snprintf(html, sizeof(html), "<FONT COLOR=GRAY>%s</FONT>", text); 356 g_snprintf(html, sizeof(html), "<FONT COLOR=GRAY>%s</FONT>", text);
357 break; 357 break;
358 case log_unidle: 358 case log_unidle:
359 g_snprintf(text, sizeof(text), 359 g_snprintf(text, sizeof(text),
360 _("%s (%s) reported that %s (%s) returned from idle @ %s"), gc->username, 360 _("%s (%s) reported that %s (%s) returned from idle @ %s"), gc->username,
361 gc->prpl->name, get_buddy_alias(who), who->name, full_date()); 361 gc->prpl->name, gaim_get_buddy_alias(who), who->name, full_date());
362 g_snprintf(html, sizeof(html), "%s", text); 362 g_snprintf(html, sizeof(html), "%s", text);
363 break; 363 break;
364 default: 364 default:
365 fclose(fd); 365 fclose(fd);
366 return; 366 return;

mercurial