mirror of
https://github.com/irssi/irssi.git
synced 2026-08-23 10:32:31 +02:00
remove unused variables in irc/dcc
This commit is contained in:
parent
c6f28666c4
commit
311523f913
2 changed files with 4 additions and 9 deletions
|
|
@ -771,16 +771,15 @@ static void event_nick(IRC_SERVER_REC *server, const char *data,
|
||||||
{
|
{
|
||||||
QUERY_REC *query;
|
QUERY_REC *query;
|
||||||
CHAT_DCC_REC *dcc;
|
CHAT_DCC_REC *dcc;
|
||||||
char *params, *nick, *tag;
|
char *nick, *tag;
|
||||||
|
|
||||||
g_return_if_fail(data != NULL);
|
g_return_if_fail(data != NULL);
|
||||||
g_return_if_fail(orignick != NULL);
|
g_return_if_fail(orignick != NULL);
|
||||||
|
|
||||||
params = event_get_params(data, 1, &nick);
|
event_get_params(data, 1, &nick);
|
||||||
if (g_ascii_strcasecmp(nick, orignick) == 0) {
|
if (g_ascii_strcasecmp(nick, orignick) == 0) {
|
||||||
/* shouldn't happen, but just to be sure irssi doesn't
|
/* shouldn't happen, but just to be sure irssi doesn't
|
||||||
get into infinite loop */
|
get into infinite loop */
|
||||||
g_free(params);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -803,8 +802,6 @@ static void event_nick(IRC_SERVER_REC *server, const char *data,
|
||||||
g_free(tag);
|
g_free(tag);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
g_free(params);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void dcc_chat_init(void)
|
void dcc_chat_init(void)
|
||||||
|
|
|
||||||
|
|
@ -466,12 +466,12 @@ static int dcc_timeout_func(void)
|
||||||
|
|
||||||
static void event_no_such_nick(IRC_SERVER_REC *server, char *data)
|
static void event_no_such_nick(IRC_SERVER_REC *server, char *data)
|
||||||
{
|
{
|
||||||
char *params, *nick;
|
char *nick;
|
||||||
GSList *tmp, *next;
|
GSList *tmp, *next;
|
||||||
|
|
||||||
g_return_if_fail(data != NULL);
|
g_return_if_fail(data != NULL);
|
||||||
|
|
||||||
params = event_get_params(data, 2, NULL, &nick);
|
event_get_params(data, 2, NULL, &nick);
|
||||||
|
|
||||||
/* check if we've send any dcc requests to this nick.. */
|
/* check if we've send any dcc requests to this nick.. */
|
||||||
for (tmp = dcc_conns; tmp != NULL; tmp = next) {
|
for (tmp = dcc_conns; tmp != NULL; tmp = next) {
|
||||||
|
|
@ -482,8 +482,6 @@ static void event_no_such_nick(IRC_SERVER_REC *server, char *data)
|
||||||
dcc->nick != NULL && g_ascii_strcasecmp(dcc->nick, nick) == 0)
|
dcc->nick != NULL && g_ascii_strcasecmp(dcc->nick, nick) == 0)
|
||||||
dcc_close(dcc);
|
dcc_close(dcc);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_free(params);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* SYNTAX: DCC CLOSE <type> <nick> [<file>] */
|
/* SYNTAX: DCC CLOSE <type> <nick> [<file>] */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue