Mercurial > pidgin.yaz
comparison src/log.c @ 4227:a614423c648f
[gaim-migrate @ 4471]
This is a patch from Nathan Walp that adds a
"char server_alias[BUDDY_ALIAS_MAXLEN]" to struct buddy, and a preference
option to show the server alias instead of the alias set by you. It
shouldn't cause any problems. But then again, faceprint is a crazy patch
writer, with an emphasis on crazy, if you know what I mean. Huh? Get it?
"Crazy"? I kill me. But right after I kill Time Warner.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 07 Jan 2003 17:44:34 +0000 |
parents | 4a0837c49d85 |
children | 5fb47ec9bfe4 |
comparison
equal
deleted
inserted
replaced
4226:a7d1eddc0afc | 4227:a614423c648f |
---|---|
372 case log_quit: | 372 case log_quit: |
373 g_snprintf(text, sizeof(text), _("+++ Program exit @ %s"), full_date()); | 373 g_snprintf(text, sizeof(text), _("+++ Program exit @ %s"), full_date()); |
374 g_snprintf(html, sizeof(html), "<I><FONT COLOR=GRAY>%s</FONT></I>", text); | 374 g_snprintf(html, sizeof(html), "<I><FONT COLOR=GRAY>%s</FONT></I>", text); |
375 break; | 375 break; |
376 } | 376 } |
377 } else if (strcmp(who->name, who->show)) { | 377 } else if (get_buddy_alias_only(who)) { |
378 switch (what) { | 378 switch (what) { |
379 case log_signon: | 379 case log_signon: |
380 g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) signed on @ %s"), | 380 g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) signed on @ %s"), |
381 gc->username, gc->prpl->name, who->show, who->name, full_date()); | 381 gc->username, gc->prpl->name, get_buddy_alias(who), who->name, full_date()); |
382 g_snprintf(html, sizeof(html), "<B>%s</B>", text); | 382 g_snprintf(html, sizeof(html), "<B>%s</B>", text); |
383 break; | 383 break; |
384 case log_signoff: | 384 case log_signoff: |
385 g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) signed off @ %s"), | 385 g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) signed off @ %s"), |
386 gc->username, gc->prpl->name, who->show, who->name, full_date()); | 386 gc->username, gc->prpl->name, get_buddy_alias(who), who->name, full_date()); |
387 g_snprintf(html, sizeof(html), "<I><FONT COLOR=GRAY>%s</FONT></I>", text); | 387 g_snprintf(html, sizeof(html), "<I><FONT COLOR=GRAY>%s</FONT></I>", text); |
388 break; | 388 break; |
389 case log_away: | 389 case log_away: |
390 g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) went away @ %s"), | 390 g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) went away @ %s"), |
391 gc->username, gc->prpl->name, who->show, who->name, full_date()); | 391 gc->username, gc->prpl->name, get_buddy_alias(who), who->name, full_date()); |
392 g_snprintf(html, sizeof(html), "<FONT COLOR=OLIVE>%s</FONT>", text); | 392 g_snprintf(html, sizeof(html), "<FONT COLOR=OLIVE>%s</FONT>", text); |
393 break; | 393 break; |
394 case log_back: | 394 case log_back: |
395 g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) came back @ %s"), | 395 g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) came back @ %s"), |
396 gc->username, gc->prpl->name, who->show, who->name, full_date()); | 396 gc->username, gc->prpl->name, get_buddy_alias(who), who->name, full_date()); |
397 g_snprintf(html, sizeof(html), "%s", text); | 397 g_snprintf(html, sizeof(html), "%s", text); |
398 break; | 398 break; |
399 case log_idle: | 399 case log_idle: |
400 g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) became idle @ %s"), | 400 g_snprintf(text, sizeof(text), _("%s (%s) reported that %s (%s) became idle @ %s"), |
401 gc->username, gc->prpl->name, who->show, who->name, full_date()); | 401 gc->username, gc->prpl->name, get_buddy_alias(who), who->name, full_date()); |
402 g_snprintf(html, sizeof(html), "<FONT COLOR=GRAY>%s</FONT>", text); | 402 g_snprintf(html, sizeof(html), "<FONT COLOR=GRAY>%s</FONT>", text); |
403 break; | 403 break; |
404 case log_unidle: | 404 case log_unidle: |
405 g_snprintf(text, sizeof(text), | 405 g_snprintf(text, sizeof(text), |
406 _("%s (%s) reported that %s (%s) returned from idle @ %s"), gc->username, | 406 _("%s (%s) reported that %s (%s) returned from idle @ %s"), gc->username, |
407 gc->prpl->name, who->show, who->name, full_date()); | 407 gc->prpl->name, get_buddy_alias(who), who->name, full_date()); |
408 g_snprintf(html, sizeof(html), "%s", text); | 408 g_snprintf(html, sizeof(html), "%s", text); |
409 break; | 409 break; |
410 default: | 410 default: |
411 fclose(fd); | 411 fclose(fd); |
412 return; | 412 return; |