| 75 write(ndata->fd, &size, 2); |
75 write(ndata->fd, &size, 2); |
| 76 write(ndata->fd, &command, 2); |
76 write(ndata->fd, &command, 2); |
| 77 write(ndata->fd, message, size); |
77 write(ndata->fd, message, size); |
| 78 } |
78 } |
| 79 |
79 |
| 80 static int nap_send_im(struct gaim_connection *gc, char *who, char *message, int flags) |
80 static int nap_send_im(struct gaim_connection *gc, char *who, char *message, int len, int flags) |
| 81 { |
81 { |
| 82 gchar buf[NAP_BUF_LEN]; |
82 gchar buf[NAP_BUF_LEN]; |
| 83 |
83 |
| 84 g_snprintf(buf, NAP_BUF_LEN, "%s %s", who, message); |
84 g_snprintf(buf, NAP_BUF_LEN, "%s %s", who, message); |
| 85 nap_write_packet(gc, 0xCD, buf); |
85 nap_write_packet(gc, 0xCD, buf); |