Removed unused variables in p_privmsg()
com_do_log and com_lines are static variables that are set, but never checked by any code.
This commit is contained in:
@@ -493,13 +493,9 @@ static void p_privmsg(char *from, char **Args)
|
|||||||
*to,
|
*to,
|
||||||
*high;
|
*high;
|
||||||
|
|
||||||
static int com_do_log, com_lines = 0;
|
|
||||||
|
|
||||||
ChannelList *channel = NULL;
|
ChannelList *channel = NULL;
|
||||||
NickList *tmpnick = NULL;
|
NickList *tmpnick = NULL;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (!from)
|
if (!from)
|
||||||
return;
|
return;
|
||||||
PasteArgs(Args, 1);
|
PasteArgs(Args, 1);
|
||||||
@@ -605,7 +601,6 @@ static void p_privmsg(char *from, char **Args)
|
|||||||
update_stats(PUBLICLIST, tmpnick, channel, 0);
|
update_stats(PUBLICLIST, tmpnick, channel, 0);
|
||||||
|
|
||||||
level = set_lastlog_msg_level(log_type);
|
level = set_lastlog_msg_level(log_type);
|
||||||
com_do_log = 0;
|
|
||||||
if (flood_type == PUBLIC_FLOOD)
|
if (flood_type == PUBLIC_FLOOD)
|
||||||
{
|
{
|
||||||
int blah = 0;
|
int blah = 0;
|
||||||
@@ -632,8 +627,6 @@ static void p_privmsg(char *from, char **Args)
|
|||||||
if (check_auto_reply(ptr))
|
if (check_auto_reply(ptr))
|
||||||
{
|
{
|
||||||
addtabkey(from, "msg", 1);
|
addtabkey(from, "msg", 1);
|
||||||
com_do_log = 1;
|
|
||||||
com_lines = 0;
|
|
||||||
ar_true = 1;
|
ar_true = 1;
|
||||||
added_to_tab = 1;
|
added_to_tab = 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user