mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 07:32:04 +02:00
replaced net_transmit by net_sendbuffer_send in the irssi-proxy module, there were no checks if the buffer was sent completely with net_transmit
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3947 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
efd4febee6
commit
bc91469cf7
3 changed files with 28 additions and 18 deletions
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
#include "module.h"
|
||||
#include "network.h"
|
||||
#include "net-sendbuffer.h"
|
||||
#include "settings.h"
|
||||
#include "irssi-version.h"
|
||||
#include "recode.h"
|
||||
|
|
@ -40,7 +41,7 @@ void proxy_outdata(CLIENT_REC *client, const char *data, ...)
|
|||
va_start(args, data);
|
||||
|
||||
str = g_strdup_vprintf(data, args);
|
||||
net_transmit(client->handle, str, strlen(str));
|
||||
net_sendbuffer_send(client->handle, str, strlen(str));
|
||||
g_free(str);
|
||||
|
||||
va_end(args);
|
||||
|
|
@ -64,7 +65,7 @@ void proxy_outdata_all(IRC_SERVER_REC *server, const char *data, ...)
|
|||
CLIENT_REC *rec = tmp->data;
|
||||
|
||||
if (rec->connected && rec->server == server)
|
||||
net_transmit(rec->handle, str, len);
|
||||
net_sendbuffer_send(rec->handle, str, len);
|
||||
}
|
||||
g_free(str);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue