Cleanup
This commit is contained in:
parent
b2a4d38e8c
commit
353230b18b
10
src/kike.c
10
src/kike.c
|
@ -612,11 +612,7 @@ irc_send_lusers (struct client *c)
|
||||||
n_opers++;
|
n_opers++;
|
||||||
}
|
}
|
||||||
|
|
||||||
int n_channels = 0;
|
int n_channels = c->ctx->channels.len;
|
||||||
struct str_map_iter iter;
|
|
||||||
str_map_iter_init (&iter, &c->ctx->channels);
|
|
||||||
while (str_map_iter_next (&iter))
|
|
||||||
n_channels++;
|
|
||||||
|
|
||||||
irc_send_reply (c, IRC_RPL_LUSERCLIENT,
|
irc_send_reply (c, IRC_RPL_LUSERCLIENT,
|
||||||
n_users, n_services, 1 /* servers total */);
|
n_users, n_services, 1 /* servers total */);
|
||||||
|
@ -753,13 +749,9 @@ static void
|
||||||
irc_handle_lusers (const struct irc_message *msg, struct client *c)
|
irc_handle_lusers (const struct irc_message *msg, struct client *c)
|
||||||
{
|
{
|
||||||
if (msg->params.len > 1 && !irc_is_this_me (c->ctx, msg->params.vector[1]))
|
if (msg->params.len > 1 && !irc_is_this_me (c->ctx, msg->params.vector[1]))
|
||||||
{
|
|
||||||
irc_send_reply (c, IRC_ERR_NOSUCHSERVER, msg->params.vector[1]);
|
irc_send_reply (c, IRC_ERR_NOSUCHSERVER, msg->params.vector[1]);
|
||||||
return;
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
irc_send_lusers (c);
|
irc_send_lusers (c);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue