| 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 |