mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
Merge pull request #1246 from ailin-nemui/wrong-prefixes
correct wrong function prefixes
Module authors will have to adapt these changes:
[M] 'constant I_INPUT_READ' {G_INPUT_READ}
[M] 'constant I_INPUT_WRITE' {G_INPUT_WRITE}
[M] 'function int i_input_add(GIOChannel*, int, GInputFunction, void*)' {g_input_add}
[M] 'function int i_input_add_full(GIOChannel*, int, int, GInputFunction, void*)' {g_input_add_full}
[M] 'function int i_input_add_poll(int, int, int, GInputFunction, void*)' {g_input_add_poll}
[M] 'function GIOChannel* i_io_channel_new(int)' {g_io_channel_new}
[M] 'function int i_io_channel_read_block(GIOChannel*, void*, int)' {g_io_channel_read_block}
[M] 'function int i_io_channel_write_block(GIOChannel*, void*, int)' {g_io_channel_write_block}
[M] 'function int i_istr_cmp(gconstpointer, gconstpointer)' {g_istr_cmp}
[M] 'function int i_istr_equal(gconstpointer, gconstpointer)' {g_istr_equal}
[M] 'function guint i_istr_hash(gconstpointer)' {g_istr_hash}
[M] 'function void i_log_func(const char*, GLogLevelFlags, const char*)' {glog_func}
[M] 'function GSList* i_slist_delete_string(GSList*, const char*, GDestroyNotify)' {gslist_delete_string}
[M] 'function GSList* i_slist_find_icase_string(GSList*, const char*)' {gslist_find_icase_string}
[M] 'function GSList* i_slist_find_string(GSList*, const char*)' {gslist_find_string}
[M] 'function void* i_slist_foreach_find(GSList*, FOREACH_FIND_FUNC, void*)' {gslist_foreach_find}
[M] 'function void i_slist_free_full(GSList*, GDestroyNotify)' {gslist_free_full}
[M] 'function GSList* i_slist_remove_string(GSList*, const char*)' {gslist_remove_string}
[M] 'function char* i_slist_to_string(GSList*, const char*)' {gslist_to_string}
This commit is contained in:
commit
db9aa817d5
46 changed files with 181 additions and 231 deletions
|
|
@ -31,19 +31,18 @@ int irc_cap_toggle (IRC_SERVER_REC *server, char *cap, int enable)
|
|||
|
||||
/* If the negotiation hasn't been completed yet just queue the requests */
|
||||
if (!server->cap_complete) {
|
||||
if (enable && !gslist_find_string(server->cap_queue, cap)) {
|
||||
if (enable && !i_slist_find_string(server->cap_queue, cap)) {
|
||||
server->cap_queue = g_slist_prepend(server->cap_queue, g_strdup(cap));
|
||||
return TRUE;
|
||||
}
|
||||
else if (!enable && gslist_find_string(server->cap_queue, cap)) {
|
||||
server->cap_queue = gslist_delete_string(server->cap_queue, cap, g_free);
|
||||
} else if (!enable && i_slist_find_string(server->cap_queue, cap)) {
|
||||
server->cap_queue = i_slist_delete_string(server->cap_queue, cap, g_free);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (enable && !gslist_find_string(server->cap_active, cap)) {
|
||||
if (enable && !i_slist_find_string(server->cap_active, cap)) {
|
||||
/* Make sure the required cap is supported by the server */
|
||||
if (!g_hash_table_lookup_extended(server->cap_supported, cap, NULL, NULL))
|
||||
return FALSE;
|
||||
|
|
@ -51,8 +50,7 @@ int irc_cap_toggle (IRC_SERVER_REC *server, char *cap, int enable)
|
|||
signal_emit("server cap req", 2, server, cap);
|
||||
irc_send_cmdv(server, "CAP REQ %s", cap);
|
||||
return TRUE;
|
||||
}
|
||||
else if (!enable && gslist_find_string(server->cap_active, cap)) {
|
||||
} else if (!enable && i_slist_find_string(server->cap_active, cap)) {
|
||||
char *negcap = g_strdup_printf("-%s", cap);
|
||||
|
||||
signal_emit("server cap req", 2, server, negcap);
|
||||
|
|
@ -200,7 +198,7 @@ static void event_cap (IRC_SERVER_REC *server, char *args, char *nick, char *add
|
|||
}
|
||||
|
||||
/* Clear the queue here */
|
||||
gslist_free_full(server->cap_queue, (GDestroyNotify) g_free);
|
||||
i_slist_free_full(server->cap_queue, (GDestroyNotify) g_free);
|
||||
server->cap_queue = NULL;
|
||||
|
||||
/* If the server doesn't support any cap we requested close the negotiation here */
|
||||
|
|
@ -223,8 +221,9 @@ static void event_cap (IRC_SERVER_REC *server, char *args, char *nick, char *add
|
|||
disable = (*caps[i] == '-');
|
||||
|
||||
if (disable)
|
||||
server->cap_active = gslist_delete_string(server->cap_active, caps[i] + 1, g_free);
|
||||
else if (!gslist_find_string(server->cap_active, caps[i]))
|
||||
server->cap_active =
|
||||
i_slist_delete_string(server->cap_active, caps[i] + 1, g_free);
|
||||
else if (!i_slist_find_string(server->cap_active, caps[i]))
|
||||
server->cap_active = g_slist_prepend(server->cap_active, g_strdup(caps[i]));
|
||||
|
||||
if (!strcmp(caps[i], "sasl"))
|
||||
|
|
@ -273,7 +272,7 @@ static void event_cap (IRC_SERVER_REC *server, char *args, char *nick, char *add
|
|||
cap_emit_signal(server, "delete", key);
|
||||
/* The server removed this CAP, remove it from the list
|
||||
* of the active ones if we had requested it */
|
||||
server->cap_active = gslist_delete_string(server->cap_active, key, g_free);
|
||||
server->cap_active = i_slist_delete_string(server->cap_active, key, g_free);
|
||||
/* We don't transfer the ownership of those two
|
||||
* variables this time, just free them when we're done. */
|
||||
g_free(key);
|
||||
|
|
|
|||
|
|
@ -283,8 +283,7 @@ static void server_init(IRC_SERVER_REC *server)
|
|||
g_free(cmd);
|
||||
}
|
||||
|
||||
server->isupport = g_hash_table_new((GHashFunc) g_istr_hash,
|
||||
(GCompareFunc) g_istr_equal);
|
||||
server->isupport = g_hash_table_new((GHashFunc) i_istr_hash, (GCompareFunc) i_istr_equal);
|
||||
|
||||
/* set the standards */
|
||||
g_hash_table_insert(server->isupport, g_strdup("CHANMODES"), g_strdup("beI,k,l,imnpst"));
|
||||
|
|
@ -417,10 +416,9 @@ static void sig_connected(IRC_SERVER_REC *server)
|
|||
(QUERY_REC *(*)(SERVER_REC *, const char *)) irc_query_find;
|
||||
server->nick_comp_func = irc_nickcmp_rfc1459;
|
||||
|
||||
server->splits = g_hash_table_new((GHashFunc) g_istr_hash,
|
||||
(GCompareFunc) g_istr_equal);
|
||||
server->splits = g_hash_table_new((GHashFunc) i_istr_hash, (GCompareFunc) i_istr_equal);
|
||||
|
||||
if (!server->session_reconnect)
|
||||
if (!server->session_reconnect)
|
||||
server_init(server);
|
||||
}
|
||||
|
||||
|
|
@ -445,7 +443,7 @@ static void sig_destroyed(IRC_SERVER_REC *server)
|
|||
g_slist_free(server->cmdqueue);
|
||||
server->cmdqueue = NULL;
|
||||
|
||||
gslist_free_full(server->cap_active, (GDestroyNotify) g_free);
|
||||
i_slist_free_full(server->cap_active, (GDestroyNotify) g_free);
|
||||
server->cap_active = NULL;
|
||||
|
||||
if (server->cap_supported) {
|
||||
|
|
@ -453,7 +451,7 @@ static void sig_destroyed(IRC_SERVER_REC *server)
|
|||
server->cap_supported = NULL;
|
||||
}
|
||||
|
||||
gslist_free_full(server->cap_queue, (GDestroyNotify) g_free);
|
||||
i_slist_free_full(server->cap_queue, (GDestroyNotify) g_free);
|
||||
server->cap_queue = NULL;
|
||||
|
||||
/* was g_free_and_null, but can't use on a GString */
|
||||
|
|
|
|||
|
|
@ -106,8 +106,8 @@ static void sig_session_restore_server(IRC_SERVER_REC *server,
|
|||
server->connrec->sasl_password = g_strdup(config_node_get_str(node, "sasl_password", NULL));
|
||||
|
||||
if (server->isupport == NULL) {
|
||||
server->isupport = g_hash_table_new((GHashFunc) g_istr_hash,
|
||||
(GCompareFunc) g_istr_equal);
|
||||
server->isupport =
|
||||
g_hash_table_new((GHashFunc) i_istr_hash, (GCompareFunc) i_istr_equal);
|
||||
}
|
||||
|
||||
node = config_node_section(NULL, node, "isupport", -1);
|
||||
|
|
|
|||
|
|
@ -491,10 +491,8 @@ static void irc_init_server(IRC_SERVER_REC *server)
|
|||
if (!IS_IRC_SERVER(server))
|
||||
return;
|
||||
|
||||
server->readtag =
|
||||
g_input_add(net_sendbuffer_handle(server->handle),
|
||||
G_INPUT_READ,
|
||||
(GInputFunction) irc_parse_incoming, server);
|
||||
server->readtag = i_input_add(net_sendbuffer_handle(server->handle), I_INPUT_READ,
|
||||
(GInputFunction) irc_parse_incoming, server);
|
||||
}
|
||||
|
||||
void irc_irc_init(void)
|
||||
|
|
|
|||
|
|
@ -219,7 +219,7 @@ static char *signal_list_move(GSList **signals, const char *event)
|
|||
GSList *link;
|
||||
char *linkevent, *linksignal;
|
||||
|
||||
link = gslist_find_string(*signals, event);
|
||||
link = i_slist_find_string(*signals, event);
|
||||
if (link == NULL)
|
||||
return NULL;
|
||||
|
||||
|
|
|
|||
|
|
@ -355,8 +355,7 @@ static void dcc_chat_listen(CHAT_DCC_REC *dcc)
|
|||
memcpy(&dcc->addr, &ip, sizeof(IPADDR));
|
||||
net_ip2host(&dcc->addr, dcc->addrstr);
|
||||
dcc->port = port;
|
||||
dcc->tagread = g_input_add(handle, G_INPUT_READ,
|
||||
(GInputFunction) dcc_chat_input, dcc);
|
||||
dcc->tagread = i_input_add(handle, I_INPUT_READ, (GInputFunction) dcc_chat_input, dcc);
|
||||
|
||||
signal_emit("dcc connected", 1, dcc);
|
||||
}
|
||||
|
|
@ -379,8 +378,7 @@ static void sig_chat_connected(CHAT_DCC_REC *dcc)
|
|||
|
||||
dcc->starttime = time(NULL);
|
||||
dcc->sendbuf = net_sendbuffer_create(dcc->handle, 0);
|
||||
dcc->tagread = g_input_add(dcc->handle, G_INPUT_READ,
|
||||
(GInputFunction) dcc_chat_input, dcc);
|
||||
dcc->tagread = i_input_add(dcc->handle, I_INPUT_READ, (GInputFunction) dcc_chat_input, dcc);
|
||||
|
||||
signal_emit("dcc connected", 1, dcc);
|
||||
}
|
||||
|
|
@ -397,9 +395,8 @@ static void dcc_chat_connect(CHAT_DCC_REC *dcc)
|
|||
|
||||
dcc->handle = dcc_connect_ip(&dcc->addr, dcc->port);
|
||||
if (dcc->handle != NULL) {
|
||||
dcc->tagconn = g_input_add(dcc->handle,
|
||||
G_INPUT_WRITE | G_INPUT_READ,
|
||||
(GInputFunction) sig_chat_connected, dcc);
|
||||
dcc->tagconn = i_input_add(dcc->handle, I_INPUT_WRITE | I_INPUT_READ,
|
||||
(GInputFunction) sig_chat_connected, dcc);
|
||||
} else {
|
||||
/* error connecting */
|
||||
signal_emit("dcc error connect", 1, dcc);
|
||||
|
|
@ -428,8 +425,8 @@ static void dcc_chat_passive(CHAT_DCC_REC *dcc)
|
|||
cmd_return_error(CMDERR_ERRNO);
|
||||
|
||||
dcc->handle = handle;
|
||||
dcc->tagconn = g_input_add(dcc->handle, G_INPUT_READ,
|
||||
(GInputFunction) dcc_chat_listen, dcc);
|
||||
dcc->tagconn =
|
||||
i_input_add(dcc->handle, I_INPUT_READ, (GInputFunction) dcc_chat_listen, dcc);
|
||||
|
||||
/* Let's send the reply to the other client! */
|
||||
dcc_ip2str(&own_ip, host);
|
||||
|
|
@ -508,8 +505,7 @@ static void cmd_dcc_chat(const char *data, IRC_SERVER_REC *server)
|
|||
|
||||
dcc->handle = handle;
|
||||
dcc->tagconn =
|
||||
g_input_add(dcc->handle, G_INPUT_READ,
|
||||
(GInputFunction) dcc_chat_listen, dcc);
|
||||
i_input_add(dcc->handle, I_INPUT_READ, (GInputFunction) dcc_chat_listen, dcc);
|
||||
|
||||
/* send the chat request */
|
||||
signal_emit("dcc request send", 1, dcc);
|
||||
|
|
|
|||
|
|
@ -112,9 +112,8 @@ void dcc_get_send_received(GET_DCC_REC *dcc)
|
|||
last 1-3 bytes should be sent later. these happen probably
|
||||
never, but I just want to do it right.. :) */
|
||||
if (dcc->tagwrite == -1) {
|
||||
dcc->tagwrite = g_input_add(dcc->handle, G_INPUT_WRITE,
|
||||
(GInputFunction) sig_dccget_send,
|
||||
dcc);
|
||||
dcc->tagwrite =
|
||||
i_input_add(dcc->handle, I_INPUT_WRITE, (GInputFunction) sig_dccget_send, dcc);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -285,8 +284,8 @@ void sig_dccget_connected(GET_DCC_REC *dcc)
|
|||
dcc_close(DCC(dcc));
|
||||
return;
|
||||
}
|
||||
dcc->tagread = g_input_add(dcc->handle, G_INPUT_READ,
|
||||
(GInputFunction) sig_dccget_receive, dcc);
|
||||
dcc->tagread =
|
||||
i_input_add(dcc->handle, I_INPUT_READ, (GInputFunction) sig_dccget_receive, dcc);
|
||||
signal_emit("dcc connected", 1, dcc);
|
||||
|
||||
if (dcc->from_dccserver) {
|
||||
|
|
@ -311,11 +310,8 @@ void dcc_get_connect(GET_DCC_REC *dcc)
|
|||
dcc->handle = dcc_connect_ip(&dcc->addr, dcc->port);
|
||||
|
||||
if (dcc->handle != NULL) {
|
||||
dcc->tagconn =
|
||||
g_input_add(dcc->handle,
|
||||
G_INPUT_WRITE | G_INPUT_READ,
|
||||
(GInputFunction) sig_dccget_connected,
|
||||
dcc);
|
||||
dcc->tagconn = i_input_add(dcc->handle, I_INPUT_WRITE | I_INPUT_READ,
|
||||
(GInputFunction) sig_dccget_connected, dcc);
|
||||
} else {
|
||||
/* error connecting */
|
||||
signal_emit("dcc error connect", 1, dcc);
|
||||
|
|
@ -344,8 +340,8 @@ static void dcc_get_listen(GET_DCC_REC *dcc)
|
|||
net_ip2host(&dcc->addr, dcc->addrstr);
|
||||
dcc->port = port;
|
||||
|
||||
dcc->tagconn = g_input_add(handle, G_INPUT_READ | G_INPUT_WRITE,
|
||||
(GInputFunction) sig_dccget_connected, dcc);
|
||||
dcc->tagconn = i_input_add(handle, I_INPUT_READ | I_INPUT_WRITE,
|
||||
(GInputFunction) sig_dccget_connected, dcc);
|
||||
}
|
||||
|
||||
void dcc_get_passive(GET_DCC_REC *dcc)
|
||||
|
|
@ -361,8 +357,7 @@ void dcc_get_passive(GET_DCC_REC *dcc)
|
|||
cmd_return_error(CMDERR_ERRNO);
|
||||
|
||||
dcc->handle = handle;
|
||||
dcc->tagconn = g_input_add(dcc->handle, G_INPUT_READ,
|
||||
(GInputFunction) dcc_get_listen, dcc);
|
||||
dcc->tagconn = i_input_add(dcc->handle, I_INPUT_READ, (GInputFunction) dcc_get_listen, dcc);
|
||||
|
||||
/* Let's send the reply to the other client! */
|
||||
dcc_ip2str(&own_ip, host);
|
||||
|
|
|
|||
|
|
@ -336,10 +336,8 @@ static void dcc_send_connected(SEND_DCC_REC *dcc)
|
|||
net_ip2host(&dcc->addr, dcc->addrstr);
|
||||
dcc->port = port;
|
||||
|
||||
dcc->tagread = g_input_add(handle, G_INPUT_READ,
|
||||
(GInputFunction) dcc_send_read_size, dcc);
|
||||
dcc->tagwrite = g_input_add(handle, G_INPUT_WRITE,
|
||||
(GInputFunction) dcc_send_data, dcc);
|
||||
dcc->tagread = i_input_add(handle, I_INPUT_READ, (GInputFunction) dcc_send_read_size, dcc);
|
||||
dcc->tagwrite = i_input_add(handle, I_INPUT_WRITE, (GInputFunction) dcc_send_data, dcc);
|
||||
|
||||
signal_emit("dcc connected", 1, dcc);
|
||||
}
|
||||
|
|
@ -352,12 +350,10 @@ static void dcc_send_connect(SEND_DCC_REC *dcc)
|
|||
if (dcc->handle != NULL) {
|
||||
dcc->starttime = time(NULL);
|
||||
|
||||
dcc->tagread = g_input_add(dcc->handle, G_INPUT_READ,
|
||||
(GInputFunction) dcc_send_read_size,
|
||||
dcc);
|
||||
dcc->tagwrite = g_input_add(dcc->handle, G_INPUT_WRITE,
|
||||
(GInputFunction) dcc_send_data,
|
||||
dcc);
|
||||
dcc->tagread = i_input_add(dcc->handle, I_INPUT_READ,
|
||||
(GInputFunction) dcc_send_read_size, dcc);
|
||||
dcc->tagwrite =
|
||||
i_input_add(dcc->handle, I_INPUT_WRITE, (GInputFunction) dcc_send_data, dcc);
|
||||
signal_emit("dcc connected", 1, dcc);
|
||||
} else {
|
||||
/* error connecting */
|
||||
|
|
@ -436,9 +432,8 @@ static int dcc_send_one_file(int queue, const char *target, const char *fname,
|
|||
dcc->queue = queue;
|
||||
dcc->file_quoted = strchr(fname, ' ') != NULL;
|
||||
if (!passive) {
|
||||
dcc->tagconn = g_input_add(handle, G_INPUT_READ,
|
||||
(GInputFunction) dcc_send_connected,
|
||||
dcc);
|
||||
dcc->tagconn =
|
||||
i_input_add(handle, I_INPUT_READ, (GInputFunction) dcc_send_connected, dcc);
|
||||
}
|
||||
|
||||
/* Generate an ID for this send if using passive protocol */
|
||||
|
|
|
|||
|
|
@ -183,8 +183,8 @@ static void dcc_server_listen(SERVER_DCC_REC *dcc)
|
|||
memcpy(&newdcc->addr, &ip, sizeof(IPADDR));
|
||||
net_ip2host(&newdcc->addr, newdcc->addrstr);
|
||||
newdcc->port = port;
|
||||
newdcc->tagread = g_input_add(handle, G_INPUT_READ,
|
||||
(GInputFunction) dcc_server_input, newdcc);
|
||||
newdcc->tagread =
|
||||
i_input_add(handle, I_INPUT_READ, (GInputFunction) dcc_server_input, newdcc);
|
||||
|
||||
signal_emit("dcc connected", 1, newdcc);
|
||||
}
|
||||
|
|
@ -210,8 +210,8 @@ static void dcc_server_msg(SERVER_DCC_REC *dcc, const char *msg)
|
|||
memcpy(&dccchat->addr, &dcc->addr, sizeof(IPADDR));
|
||||
net_ip2host(&dccchat->addr, dccchat->addrstr);
|
||||
dccchat->port = dcc->port;
|
||||
dccchat->tagread = g_input_add(dccchat->handle, G_INPUT_READ,
|
||||
(GInputFunction) dcc_chat_input, dccchat);
|
||||
dccchat->tagread = i_input_add(dccchat->handle, I_INPUT_READ,
|
||||
(GInputFunction) dcc_chat_input, dccchat);
|
||||
|
||||
dcc->connection_established = 1;
|
||||
signal_emit("dcc connected", 1, dccchat);
|
||||
|
|
@ -347,8 +347,8 @@ static void cmd_dcc_server(const char *data, IRC_SERVER_REC *server)
|
|||
dcc = dcc_server_create(server, flags);
|
||||
dcc->handle = handle;
|
||||
dcc->port = atoi(port);
|
||||
dcc->tagconn = g_input_add(dcc->handle, G_INPUT_READ,
|
||||
(GInputFunction) dcc_server_listen, dcc);
|
||||
dcc->tagconn =
|
||||
i_input_add(dcc->handle, I_INPUT_READ, (GInputFunction) dcc_server_listen, dcc);
|
||||
|
||||
signal_emit("dcc server started", 1, dcc);
|
||||
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ void dcc_unregister_type(const char *type)
|
|||
{
|
||||
GSList *pos;
|
||||
|
||||
pos = gslist_find_string(dcc_types, type);
|
||||
pos = i_slist_find_string(dcc_types, type);
|
||||
if (pos != NULL) {
|
||||
void *tmp = pos->data;
|
||||
dcc_types = g_slist_remove(dcc_types, pos->data);
|
||||
|
|
@ -65,7 +65,7 @@ void dcc_unregister_type(const char *type)
|
|||
|
||||
int dcc_str2type(const char *str)
|
||||
{
|
||||
if (gslist_find_string(dcc_types, str) == NULL)
|
||||
if (i_slist_find_string(dcc_types, str) == NULL)
|
||||
return -1;
|
||||
|
||||
return module_get_uniq_id_str("DCC", str);
|
||||
|
|
|
|||
|
|
@ -120,8 +120,7 @@ static void flood_init_server(IRC_SERVER_REC *server)
|
|||
rec = g_new0(MODULE_SERVER_REC, 1);
|
||||
MODULE_DATA_SET(server, rec);
|
||||
|
||||
rec->floodlist = g_hash_table_new((GHashFunc) g_istr_hash,
|
||||
(GCompareFunc) g_istr_equal);
|
||||
rec->floodlist = g_hash_table_new((GHashFunc) i_istr_hash, (GCompareFunc) i_istr_equal);
|
||||
}
|
||||
|
||||
static void flood_hash_destroy(const char *key, FLOOD_REC *flood)
|
||||
|
|
|
|||
|
|
@ -279,7 +279,7 @@ static void ison_check_parts(IRC_SERVER_REC *server)
|
|||
NOTIFY_NICK_REC *rec = tmp->data;
|
||||
next = tmp->next;
|
||||
|
||||
if (gslist_find_icase_string(mserver->ison_tempusers, rec->nick) != NULL)
|
||||
if (i_slist_find_icase_string(mserver->ison_tempusers, rec->nick) != NULL)
|
||||
continue;
|
||||
|
||||
notifylist_left(server, rec);
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ static GIOChannel *net_listen_unix(const char *path)
|
|||
goto error_unlink;
|
||||
}
|
||||
|
||||
return g_io_channel_new(handle);
|
||||
return i_io_channel_new(handle);
|
||||
|
||||
error_unlink:
|
||||
unlink(sa.sun_path);
|
||||
|
|
@ -99,7 +99,7 @@ static GIOChannel *net_accept_unix(GIOChannel *handle)
|
|||
return NULL;
|
||||
|
||||
fcntl(ret, F_SETFL, O_NONBLOCK);
|
||||
return g_io_channel_new(ret);
|
||||
return i_io_channel_new(ret);
|
||||
}
|
||||
|
||||
static void remove_client(CLIENT_REC *rec)
|
||||
|
|
@ -470,8 +470,7 @@ static void sig_listen(LISTEN_REC *listen)
|
|||
rec->server = servers == NULL ? NULL :
|
||||
IRC_SERVER(server_find_chatnet(listen->ircnet));
|
||||
}
|
||||
rec->recv_tag = g_input_add(handle, G_INPUT_READ,
|
||||
(GInputFunction) sig_listen_client, rec);
|
||||
rec->recv_tag = i_input_add(handle, I_INPUT_READ, (GInputFunction) sig_listen_client, rec);
|
||||
|
||||
proxy_clients = g_slist_prepend(proxy_clients, rec);
|
||||
listen->clients = g_slist_prepend(listen->clients, rec);
|
||||
|
|
@ -739,8 +738,7 @@ static void add_listen(const char *ircnet, int port, const char *port_or_path)
|
|||
rec->port = port;
|
||||
rec->port_or_path = g_strdup(port_or_path);
|
||||
|
||||
rec->tag = g_input_add(rec->handle, G_INPUT_READ,
|
||||
(GInputFunction) sig_listen, rec);
|
||||
rec->tag = i_input_add(rec->handle, I_INPUT_READ, (GInputFunction) sig_listen, rec);
|
||||
|
||||
proxy_listens = g_slist_append(proxy_listens, rec);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue