Remove unused variables in whoreply() and add_user_who()
The result of add_to_channel() isn't used in these functions, so we don't need to store it.
This commit is contained in:
@@ -991,7 +991,6 @@ static void p_authenticate(char *from, char **ArgList)
|
|||||||
void add_user_who (WhoEntry *w, char *from, char **ArgList)
|
void add_user_who (WhoEntry *w, char *from, char **ArgList)
|
||||||
{
|
{
|
||||||
char *userhost;
|
char *userhost;
|
||||||
ChannelList *chan;
|
|
||||||
int op = 0, voice = 0;
|
int op = 0, voice = 0;
|
||||||
|
|
||||||
/* Obviously this is safe. */
|
/* Obviously this is safe. */
|
||||||
@@ -999,7 +998,7 @@ void add_user_who (WhoEntry *w, char *from, char **ArgList)
|
|||||||
sprintf(userhost, "%s@%s", ArgList[1], ArgList[2]);
|
sprintf(userhost, "%s@%s", ArgList[1], ArgList[2]);
|
||||||
voice = (strchr(ArgList[5], '+') != NULL);
|
voice = (strchr(ArgList[5], '+') != NULL);
|
||||||
op = (strchr(ArgList[5], '@') != NULL);
|
op = (strchr(ArgList[5], '@') != NULL);
|
||||||
chan = add_to_channel(ArgList[0], ArgList[4], from_server, op, voice, userhost, ArgList[3], ArgList[5], 0, ArgList[6] ? my_atol(ArgList[6]) : 0);
|
add_to_channel(ArgList[0], ArgList[4], from_server, op, voice, userhost, ArgList[3], ArgList[5], 0, ArgList[6] ? my_atol(ArgList[6]) : 0);
|
||||||
#ifdef WANT_NSLOOKUP
|
#ifdef WANT_NSLOOKUP
|
||||||
if (get_int_var(AUTO_NSLOOKUP_VAR))
|
if (get_int_var(AUTO_NSLOOKUP_VAR))
|
||||||
do_nslookup(ArgList[2], ArgList[4], ArgList[1], ArgList[0], from_server, auto_nslookup, NULL);
|
do_nslookup(ArgList[2], ArgList[4], ArgList[1], ArgList[0], from_server, auto_nslookup, NULL);
|
||||||
|
|||||||
@@ -399,7 +399,6 @@ void whoreply (char *from, char **ArgList)
|
|||||||
*nick,
|
*nick,
|
||||||
*stat,
|
*stat,
|
||||||
*name;
|
*name;
|
||||||
ChannelList *chan = NULL;
|
|
||||||
char buf_data[BIG_BUFFER_SIZE+1];
|
char buf_data[BIG_BUFFER_SIZE+1];
|
||||||
WhoEntry *new_w = who_queue_top(from_server);
|
WhoEntry *new_w = who_queue_top(from_server);
|
||||||
|
|
||||||
@@ -522,7 +521,7 @@ do
|
|||||||
nick, stat, user, host, server, name);
|
nick, stat, user, host, server, name);
|
||||||
|
|
||||||
set_display_target(channel, LOG_CRAP);
|
set_display_target(channel, LOG_CRAP);
|
||||||
chan = add_to_channel(channel, nick, from_server, opped, voice, buf_data, server, stat, 0, my_atol(name));
|
add_to_channel(channel, nick, from_server, opped, voice, buf_data, server, stat, 0, my_atol(name));
|
||||||
if (new_w->who_stuff)
|
if (new_w->who_stuff)
|
||||||
parse_line(NULL, new_w->who_stuff, buffer, 0, 0, 1);
|
parse_line(NULL, new_w->who_stuff, buffer, 0, 0, 1);
|
||||||
else if (!in_join_list(channel, from_server) && do_hook(WHO_LIST, "%s", buffer))
|
else if (!in_join_list(channel, from_server) && do_hook(WHO_LIST, "%s", buffer))
|
||||||
|
|||||||
Reference in New Issue
Block a user