Mercurial > pidgin
comparison src/buddy.c @ 1735:00f74db70f2d
[gaim-migrate @ 1745]
have write_to_conv put on the timestamps for system messages.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Sat, 21 Apr 2001 00:32:40 +0000 |
| parents | 251c19bf5763 |
| children | 0ddc5418a0b4 |
comparison
equal
deleted
inserted
replaced
| 1734:dd78a230aa06 | 1735:00f74db70f2d |
|---|---|
| 2248 update_num_group(gs); | 2248 update_num_group(gs); |
| 2249 if ((bs->sound != 2) && (display_options & OPT_DISP_SHOW_LOGON)) { | 2249 if ((bs->sound != 2) && (display_options & OPT_DISP_SHOW_LOGON)) { |
| 2250 struct conversation *c = find_conversation(b->name); | 2250 struct conversation *c = find_conversation(b->name); |
| 2251 if (c) { | 2251 if (c) { |
| 2252 char tmp[1024]; | 2252 char tmp[1024]; |
| 2253 g_snprintf(tmp, sizeof(tmp), _("<B>%s logged in%s%s.</B>"), b->name, | 2253 g_snprintf(tmp, sizeof(tmp), _("%s logged in."), b->name); |
| 2254 ((display_options & OPT_DISP_SHOW_TIME) ? " @ " : ""), | |
| 2255 ((display_options & OPT_DISP_SHOW_TIME) ? date() : "")); | |
| 2256 write_to_conv(c, tmp, WFLAG_SYSTEM, NULL); | 2254 write_to_conv(c, tmp, WFLAG_SYSTEM, NULL); |
| 2257 } | 2255 } |
| 2258 } | 2256 } |
| 2259 bs->sound = 2; | 2257 bs->sound = 2; |
| 2260 } else if (bs->log_timer == 0) { | 2258 } else if (bs->log_timer == 0) { |
| 2302 gdk_bitmap_unref(bm); | 2300 gdk_bitmap_unref(bm); |
| 2303 if ((bs->sound != 1) && (display_options & OPT_DISP_SHOW_LOGON)) { | 2301 if ((bs->sound != 1) && (display_options & OPT_DISP_SHOW_LOGON)) { |
| 2304 struct conversation *c = find_conversation(b->name); | 2302 struct conversation *c = find_conversation(b->name); |
| 2305 if (c) { | 2303 if (c) { |
| 2306 char tmp[1024]; | 2304 char tmp[1024]; |
| 2307 g_snprintf(tmp, sizeof(tmp), _("<B>%s logged out%s%s.</B>"), b->name, | 2305 g_snprintf(tmp, sizeof(tmp), _("%s logged out."), b->name); |
| 2308 ((display_options & OPT_DISP_SHOW_TIME) ? " @ " : ""), | |
| 2309 ((display_options & OPT_DISP_SHOW_TIME) ? date() : "")); | |
| 2310 write_to_conv(c, tmp, WFLAG_SYSTEM, NULL); | 2306 write_to_conv(c, tmp, WFLAG_SYSTEM, NULL); |
| 2311 } | 2307 } |
| 2312 } | 2308 } |
| 2313 | 2309 |
| 2314 bs->sound = 1; | 2310 bs->sound = 1; |
