Remove useless alias_entry hits member

This commit is contained in:
Elizabeth Myers 2016-04-06 11:47:13 -05:00
parent 0d7e4d311a
commit 999c42bad8
3 changed files with 0 additions and 5 deletions

View File

@ -312,7 +312,6 @@ struct alias_entry
char *name;
char *target;
int flags; /* reserved for later use */
int hits;
};
/* All variables are GLOBAL */

View File

@ -1763,7 +1763,6 @@ conf_begin_alias(struct TopConf *tc)
yy_alias->name = rb_strdup(conf_cur_block_name);
yy_alias->flags = 0;
yy_alias->hits = 0;
return 0;
}

View File

@ -161,9 +161,6 @@ m_alias(struct MsgBuf *msgbuf, struct Client *client_p, struct Client *source_p,
return;
}
/* increment the hitcounter on this alias */
aptr->hits++;
sendto_one(target_p, ":%s PRIVMSG %s :%s",
get_id(client_p, target_p),
p != NULL ? aptr->target : get_id(target_p, target_p),