Remove unused variable cruft.
This commit is contained in:
parent
ae4ce45f2e
commit
2d537cae88
5 changed files with 1 additions and 16 deletions
|
@ -398,7 +398,6 @@ ms_join(struct Client *client_p, struct Client *source_p, int parc, const char *
|
||||||
time_t newts;
|
time_t newts;
|
||||||
int isnew;
|
int isnew;
|
||||||
int keep_our_modes = YES;
|
int keep_our_modes = YES;
|
||||||
int keep_new_modes = YES;
|
|
||||||
rb_dlink_node *ptr, *next_ptr;
|
rb_dlink_node *ptr, *next_ptr;
|
||||||
|
|
||||||
/* special case for join 0 */
|
/* special case for join 0 */
|
||||||
|
@ -460,8 +459,6 @@ ms_join(struct Client *client_p, struct Client *source_p, int parc, const char *
|
||||||
keep_our_modes = NO;
|
keep_our_modes = NO;
|
||||||
chptr->channelts = newts;
|
chptr->channelts = newts;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
keep_new_modes = NO;
|
|
||||||
|
|
||||||
/* Lost the TS, other side wins, so remove modes on this side */
|
/* Lost the TS, other side wins, so remove modes on this side */
|
||||||
if(!keep_our_modes)
|
if(!keep_our_modes)
|
||||||
|
|
|
@ -168,7 +168,6 @@ ms_kill(struct Client *client_p, struct Client *source_p, int parc, const char *
|
||||||
const char *reason;
|
const char *reason;
|
||||||
char default_reason[] = "<No reason given>";
|
char default_reason[] = "<No reason given>";
|
||||||
const char *path;
|
const char *path;
|
||||||
int chasing = 0;
|
|
||||||
|
|
||||||
*buf = '\0';
|
*buf = '\0';
|
||||||
|
|
||||||
|
@ -212,7 +211,6 @@ ms_kill(struct Client *client_p, struct Client *source_p, int parc, const char *
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
sendto_one_notice(source_p, ":KILL changed from %s to %s", user, target_p->name);
|
sendto_one_notice(source_p, ":KILL changed from %s to %s", user, target_p->name);
|
||||||
chasing = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(IsServer(target_p) || IsMe(target_p))
|
if(IsServer(target_p) || IsMe(target_p))
|
||||||
|
|
|
@ -485,13 +485,10 @@ ms_sid(struct Client *client_p, struct Client *source_p, int parc, const char *p
|
||||||
struct remote_conf *hub_p;
|
struct remote_conf *hub_p;
|
||||||
hook_data_client hdata;
|
hook_data_client hdata;
|
||||||
rb_dlink_node *ptr;
|
rb_dlink_node *ptr;
|
||||||
int hop;
|
|
||||||
int hlined = 0;
|
int hlined = 0;
|
||||||
int llined = 0;
|
int llined = 0;
|
||||||
char squitreason[160];
|
char squitreason[160];
|
||||||
|
|
||||||
hop = atoi(parv[2]);
|
|
||||||
|
|
||||||
/* collision on the name? */
|
/* collision on the name? */
|
||||||
if((target_p = find_server(NULL, parv[1])) != NULL)
|
if((target_p = find_server(NULL, parv[1])) != NULL)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1165,7 +1165,6 @@ stats_memory (struct Client *source_p)
|
||||||
{
|
{
|
||||||
struct Client *target_p;
|
struct Client *target_p;
|
||||||
struct Channel *chptr;
|
struct Channel *chptr;
|
||||||
struct Ban *actualBan;
|
|
||||||
rb_dlink_node *rb_dlink;
|
rb_dlink_node *rb_dlink;
|
||||||
rb_dlink_node *ptr;
|
rb_dlink_node *ptr;
|
||||||
int channel_count = 0;
|
int channel_count = 0;
|
||||||
|
@ -1247,7 +1246,6 @@ stats_memory (struct Client *source_p)
|
||||||
|
|
||||||
RB_DLINK_FOREACH(rb_dlink, chptr->banlist.head)
|
RB_DLINK_FOREACH(rb_dlink, chptr->banlist.head)
|
||||||
{
|
{
|
||||||
actualBan = rb_dlink->data;
|
|
||||||
channel_bans++;
|
channel_bans++;
|
||||||
|
|
||||||
channel_ban_memory += sizeof(rb_dlink_node) + sizeof(struct Ban);
|
channel_ban_memory += sizeof(rb_dlink_node) + sizeof(struct Ban);
|
||||||
|
@ -1255,7 +1253,6 @@ stats_memory (struct Client *source_p)
|
||||||
|
|
||||||
RB_DLINK_FOREACH(rb_dlink, chptr->exceptlist.head)
|
RB_DLINK_FOREACH(rb_dlink, chptr->exceptlist.head)
|
||||||
{
|
{
|
||||||
actualBan = rb_dlink->data;
|
|
||||||
channel_except++;
|
channel_except++;
|
||||||
|
|
||||||
channel_except_memory += (sizeof(rb_dlink_node) + sizeof(struct Ban));
|
channel_except_memory += (sizeof(rb_dlink_node) + sizeof(struct Ban));
|
||||||
|
@ -1263,7 +1260,6 @@ stats_memory (struct Client *source_p)
|
||||||
|
|
||||||
RB_DLINK_FOREACH(rb_dlink, chptr->invexlist.head)
|
RB_DLINK_FOREACH(rb_dlink, chptr->invexlist.head)
|
||||||
{
|
{
|
||||||
actualBan = rb_dlink->data;
|
|
||||||
channel_invex++;
|
channel_invex++;
|
||||||
|
|
||||||
channel_invex_memory += (sizeof(rb_dlink_node) + sizeof(struct Ban));
|
channel_invex_memory += (sizeof(rb_dlink_node) + sizeof(struct Ban));
|
||||||
|
@ -1271,7 +1267,6 @@ stats_memory (struct Client *source_p)
|
||||||
|
|
||||||
RB_DLINK_FOREACH(rb_dlink, chptr->quietlist.head)
|
RB_DLINK_FOREACH(rb_dlink, chptr->quietlist.head)
|
||||||
{
|
{
|
||||||
actualBan = rb_dlink->data;
|
|
||||||
channel_quiets++;
|
channel_quiets++;
|
||||||
|
|
||||||
channel_quiet_memory += (sizeof(rb_dlink_node) + sizeof(struct Ban));
|
channel_quiet_memory += (sizeof(rb_dlink_node) + sizeof(struct Ban));
|
||||||
|
|
|
@ -83,12 +83,10 @@ static int
|
||||||
do_local_user(struct Client *client_p, struct Client *source_p,
|
do_local_user(struct Client *client_p, struct Client *source_p,
|
||||||
const char *username, const char *realname)
|
const char *username, const char *realname)
|
||||||
{
|
{
|
||||||
struct User *user;
|
|
||||||
|
|
||||||
s_assert(NULL != source_p);
|
s_assert(NULL != source_p);
|
||||||
s_assert(source_p->username != username);
|
s_assert(source_p->username != username);
|
||||||
|
|
||||||
user = make_user(source_p);
|
make_user(source_p);
|
||||||
|
|
||||||
if (!(source_p->flags & FLAGS_SENTUSER))
|
if (!(source_p->flags & FLAGS_SENTUSER))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue