|
From: Mark D. <ma...@ki...> - 2003-03-30 18:56:52
|
> The problem occurs when I try to send a message which I have
> recieved from user1 to user2, where user2 is someone other than
> myself. I get a dialog propt asking me if I want to direct connect
> to user2. I don't want to direct connect to user2! Anyway, even if
> I click the yes button on the dialog box, it refuses to direct
> connect me.
> buf_size = strlen(buf);
> if ( buf_size > MAX_MESSAGE )
> buf_size = MAX_MESSAGE;
> for (i = 0; i < write_to.count; i++) {
> if (strcmp(*who, write_to.handle[i]))
> /*can I send a message to a different user over the same gc that
> I used to **recieve a message from another user?*/
> serv_send_im(gc, write_to.handle[i], buf, buf_size, *flags); } }
That last line should be:
serv_send_im(gc, write_to.handle[i], buf, -1, *flags);
The length parameter should always be set to -1 unless you are IMing someone a
message containing an image. For normal text strings, each PRPL just uses
strlen to find the length of buf.
-Mark
--
O O Mark Doliner
\ | ma...@ki...
\ | www.kingant.net
"I'd rather be rich than stupid."
|