Mercurial > pidgin.yaz
comparison plugins/irc.c @ 1764:1e0613d9526b
[gaim-migrate @ 1774]
I decided to do the time stamp w/ messages thing that Eric put in the TODO list.
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Fri, 27 Apr 2001 23:26:19 +0000 |
parents | 34369ed4e212 |
children | 1b61db419774 |
comparison
equal
deleted
inserted
replaced
1763:5ad0b0c3ea01 | 1764:1e0613d9526b |
---|---|
459 | 459 |
460 write(idata->fd, buf, strlen(buf)); | 460 write(idata->fd, buf, strlen(buf)); |
461 | 461 |
462 /* Since AIM expects us to receive the message we send, we gotta fake it */ | 462 /* Since AIM expects us to receive the message we send, we gotta fake it */ |
463 if (is_command==FALSE) | 463 if (is_command==FALSE) |
464 serv_got_chat_in(gc, id, gc->username, 0, message); | 464 serv_got_chat_in(gc, id, gc->username, 0, message, time((time_t)NULL)); |
465 | 465 |
466 g_free(buf); | 466 g_free(buf); |
467 | 467 |
468 | 468 |
469 } | 469 } |
584 char **res; | 584 char **res; |
585 | 585 |
586 res = g_strsplit(buf, " ", 5); | 586 res = g_strsplit(buf, " ", 5); |
587 | 587 |
588 if (!strcmp(res[1], "301")) | 588 if (!strcmp(res[1], "301")) |
589 serv_got_im(gc, res[3], res[4] + 1, 1); | 589 serv_got_im(gc, res[3], res[4] + 1, 1, time((time_t)NULL)); |
590 | 590 |
591 g_strfreev(res); | 591 g_strfreev(res); |
592 } | 592 } |
593 | 593 |
594 /* Parse the list of names that we receive when we first sign on to | 594 /* Parse the list of names that we receive when we first sign on to |
1098 /* Yup. We have a channel */ | 1098 /* Yup. We have a channel */ |
1099 int id; | 1099 int id; |
1100 | 1100 |
1101 id = find_id_by_name(gc, u_channel); | 1101 id = find_id_by_name(gc, u_channel); |
1102 if (id != -1) { | 1102 if (id != -1) { |
1103 serv_got_chat_in(gc, id, u_nick, 0, u_message); | 1103 serv_got_chat_in(gc, id, u_nick, 0, u_message, time((time_t)NULL)); |
1104 } | 1104 } |
1105 } else { | 1105 } else { |
1106 /* Nope. Let's treat it as a private message */ | 1106 /* Nope. Let's treat it as a private message */ |
1107 serv_got_im(gc, u_nick, u_message, 0); | 1107 serv_got_im(gc, u_nick, u_message, 0, time((time_t)NULL)); |
1108 } | 1108 } |
1109 | 1109 |
1110 return; | 1110 return; |
1111 } | 1111 } |
1112 | 1112 |