|
|
|
@@ -110,7 +110,7 @@ static int handle_oper_vision(const char *from, char *cline, int *up_status)
|
|
|
|
nick_collisions++;
|
|
|
|
nick_collisions++;
|
|
|
|
if (!(flags & NICK_COLLIDE))
|
|
|
|
if (!(flags & NICK_COLLIDE))
|
|
|
|
goto done;
|
|
|
|
goto done;
|
|
|
|
serversay(1, from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_NICK_COLLISION_FSET), "%s %s %s %s", update_clock(GET_TIME), fr, for_, q));
|
|
|
|
serversay(from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_NICK_COLLISION_FSET), "%s %s %s %s", update_clock(GET_TIME), fr, for_, q));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@@ -123,9 +123,9 @@ static int handle_oper_vision(const char *from, char *cline, int *up_status)
|
|
|
|
if (q && *q)
|
|
|
|
if (q && *q)
|
|
|
|
q++; chop(q, 1);
|
|
|
|
q++; chop(q, 1);
|
|
|
|
if (loc_check <= 2)
|
|
|
|
if (loc_check <= 2)
|
|
|
|
serversay(1, from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_KILL_LOCAL_FSET), "%s %s %s %s", update_clock(GET_TIME), fr, for_, q));
|
|
|
|
serversay(from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_KILL_LOCAL_FSET), "%s %s %s %s", update_clock(GET_TIME), fr, for_, q));
|
|
|
|
else
|
|
|
|
else
|
|
|
|
serversay(1, from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_KILL_FSET), "%s %s %s %s", update_clock(GET_TIME), fr, for_, q));
|
|
|
|
serversay(from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_KILL_FSET), "%s %s %s %s", update_clock(GET_TIME), fr, for_, q));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
(*up_status)++;
|
|
|
|
(*up_status)++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@@ -143,7 +143,7 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
p = line + 24;
|
|
|
|
p = line + 24;
|
|
|
|
else
|
|
|
|
else
|
|
|
|
p = line + 18;
|
|
|
|
p = line + 18;
|
|
|
|
serversay(1, from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_NICK_COLLISION_FSET), "%s %s", update_clock(GET_TIME), p));
|
|
|
|
serversay(from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_NICK_COLLISION_FSET), "%s %s", update_clock(GET_TIME), p));
|
|
|
|
(*up_status)++;
|
|
|
|
(*up_status)++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!strncmp(line, "IP# Mismatch:", 13))
|
|
|
|
else if (!strncmp(line, "IP# Mismatch:", 13))
|
|
|
|
@@ -151,14 +151,14 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
if (!(flags & IP_MISMATCH))
|
|
|
|
if (!(flags & IP_MISMATCH))
|
|
|
|
goto done;
|
|
|
|
goto done;
|
|
|
|
for_ = line + 14;
|
|
|
|
for_ = line + 14;
|
|
|
|
serversay(1, from, "%s", convert_output_format(" IP Mismatch %C$1-", "%s %s", update_clock(GET_TIME), for_));
|
|
|
|
serversay(from, "%s", convert_output_format(" IP Mismatch %C$1-", "%s %s", update_clock(GET_TIME), for_));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!strncmp(line, "Hacked ops on opless channel:", 29))
|
|
|
|
else if (!strncmp(line, "Hacked ops on opless channel:", 29))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!(flags & HACK_OPS))
|
|
|
|
if (!(flags & HACK_OPS))
|
|
|
|
goto done;
|
|
|
|
goto done;
|
|
|
|
for_ = line + 29;
|
|
|
|
for_ = line + 29;
|
|
|
|
serversay(1, from, "%s", convert_output_format(" Hacked ops on $0", "%s", for_));
|
|
|
|
serversay(from, "%s", convert_output_format(" Hacked ops on $0", "%s", for_));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!strncmp(line, "connect failure:", 16))
|
|
|
|
else if (!strncmp(line, "connect failure:", 16))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@@ -167,14 +167,14 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
if (!(flags & SERVER_CRAP))
|
|
|
|
if (!(flags & SERVER_CRAP))
|
|
|
|
goto done;
|
|
|
|
goto done;
|
|
|
|
for_ = line + 16;
|
|
|
|
for_ = line + 16;
|
|
|
|
serversay(1, from, "%s", convert_output_format(" Connect failure %K[%n$0-%K]", "%s", for_));
|
|
|
|
serversay(from, "%s", convert_output_format(" Connect failure %K[%n$0-%K]", "%s", for_));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!strncmp(line, "Identd response differs", 22))
|
|
|
|
else if (!strncmp(line, "Identd response differs", 22))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!(flags & IDENTD))
|
|
|
|
if (!(flags & IDENTD))
|
|
|
|
goto done;
|
|
|
|
goto done;
|
|
|
|
for_ = line + 24;
|
|
|
|
for_ = line + 24;
|
|
|
|
serversay(1, from, "%s", convert_output_format(" Identd response differs %K[%C$1-%K]", "%s %s", update_clock(GET_TIME), for_));
|
|
|
|
serversay(from, "%s", convert_output_format(" Identd response differs %K[%C$1-%K]", "%s %s", update_clock(GET_TIME), for_));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!strncmp(line, "Fake: ", 6)) /* MODE */
|
|
|
|
else if (!strncmp(line, "Fake: ", 6)) /* MODE */
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@@ -185,9 +185,9 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
if ((fr = next_arg(p, &temp)))
|
|
|
|
if ((fr = next_arg(p, &temp)))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (lookup_channel(fr, from_server, CHAN_NOUNLINK))
|
|
|
|
if (lookup_channel(fr, from_server, CHAN_NOUNLINK))
|
|
|
|
serversay(1, from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_FAKE_FSET), "%s %s %s", update_clock(GET_TIME), fr, temp));
|
|
|
|
serversay(from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_FAKE_FSET), "%s %s %s", update_clock(GET_TIME), fr, temp));
|
|
|
|
else
|
|
|
|
else
|
|
|
|
serversay(1, from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_FAKE_FSET), "%s %s %s", update_clock(GET_TIME), fr, temp));
|
|
|
|
serversay(from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_FAKE_FSET), "%s %s %s", update_clock(GET_TIME), fr, temp));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!strncmp(line, "Unauthorized connection from",28))
|
|
|
|
else if (!strncmp(line, "Unauthorized connection from",28))
|
|
|
|
@@ -196,7 +196,7 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
if (!(flags & UNAUTHS))
|
|
|
|
if (!(flags & UNAUTHS))
|
|
|
|
goto done;
|
|
|
|
goto done;
|
|
|
|
for_ = line + 28;
|
|
|
|
for_ = line + 28;
|
|
|
|
serversay(1, from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_UNAUTH_FSET), "%s %s", update_clock(GET_TIME), for_));
|
|
|
|
serversay(from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_UNAUTH_FSET), "%s %s", update_clock(GET_TIME), for_));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!strncmp(line, "Too many connections from",25))
|
|
|
|
else if (!strncmp(line, "Too many connections from",25))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@@ -204,7 +204,7 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
if (!(flags & TOO_MANY))
|
|
|
|
if (!(flags & TOO_MANY))
|
|
|
|
goto done;
|
|
|
|
goto done;
|
|
|
|
for_ = line + 25;
|
|
|
|
for_ = line + 25;
|
|
|
|
serversay(1, from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_UNAUTH_FSET), "%s %s", update_clock(GET_TIME), for_));
|
|
|
|
serversay(from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_UNAUTH_FSET), "%s %s", update_clock(GET_TIME), for_));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (strstr(line, "Entering high-traffic mode -") || !strncmp(line, "still high-traffic mode -", 25))
|
|
|
|
else if (strstr(line, "Entering high-traffic mode -") || !strncmp(line, "still high-traffic mode -", 25))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@@ -245,7 +245,7 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
q = temp2+2;
|
|
|
|
q = temp2+2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
serversay(1, from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_TRAFFIC_HIGH_FSET), "%s %s %s", update_clock(GET_TIME), for_, q));
|
|
|
|
serversay(from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_TRAFFIC_HIGH_FSET), "%s %s %s", update_clock(GET_TIME), for_, q));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!strncmp(line, "Resuming standard operation", 27))
|
|
|
|
else if (!strncmp(line, "Resuming standard operation", 27))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@@ -257,7 +257,7 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
if (for_ && *for_ == '-')
|
|
|
|
if (for_ && *for_ == '-')
|
|
|
|
for_ = next_arg(p, &p);
|
|
|
|
for_ = next_arg(p, &p);
|
|
|
|
temp = next_arg(p, &temp2);
|
|
|
|
temp = next_arg(p, &temp2);
|
|
|
|
serversay(1, from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_TRAFFIC_NORM_FSET), "%s %s %s %s", update_clock(GET_TIME), for_, temp, temp2));
|
|
|
|
serversay(from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_TRAFFIC_NORM_FSET), "%s %s %s %s", update_clock(GET_TIME), for_, temp, temp2));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (wild_match("% is rehashing Server config*", line))
|
|
|
|
else if (wild_match("% is rehashing Server config*", line))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@@ -266,7 +266,7 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
goto done;
|
|
|
|
goto done;
|
|
|
|
p = line;
|
|
|
|
p = line;
|
|
|
|
for_ = next_arg(p, &p);
|
|
|
|
for_ = next_arg(p, &p);
|
|
|
|
serversay(1, from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_REHASH_FSET), "%s %s", update_clock(GET_TIME), for_));
|
|
|
|
serversay(from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_REHASH_FSET), "%s %s", update_clock(GET_TIME), for_));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (wild_match("% added K-Line for *", line))
|
|
|
|
else if (wild_match("% added K-Line for *", line))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@@ -288,9 +288,9 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
if (++temp2)
|
|
|
|
if (++temp2)
|
|
|
|
chop(temp2, 1);
|
|
|
|
chop(temp2, 1);
|
|
|
|
if (serv)
|
|
|
|
if (serv)
|
|
|
|
serversay(1, from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_GLINE_FSET), "%s %s %s %s %s", update_clock(GET_TIME), for_, temp2, serv, temp));
|
|
|
|
serversay(from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_GLINE_FSET), "%s %s %s %s %s", update_clock(GET_TIME), for_, temp2, serv, temp));
|
|
|
|
else
|
|
|
|
else
|
|
|
|
serversay(1, from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_KLINE_FSET), "%s %s %s %s", update_clock(GET_TIME), for_, temp2, temp));
|
|
|
|
serversay(from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_KLINE_FSET), "%s %s %s %s", update_clock(GET_TIME), for_, temp2, temp));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!strncmp(line, "Rejecting vlad/joh/com bot:", 27) || !strncmp(line+14, "Rejecting eggdrop bot:", 20) || !strncmp(line, "Rejecting ojnk/annoy bot", 24))
|
|
|
|
else if (!strncmp(line, "Rejecting vlad/joh/com bot:", 27) || !strncmp(line+14, "Rejecting eggdrop bot:", 20) || !strncmp(line, "Rejecting ojnk/annoy bot", 24))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@@ -300,7 +300,7 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
p = line + 10;
|
|
|
|
p = line + 10;
|
|
|
|
temp2 = next_arg(p, &p);
|
|
|
|
temp2 = next_arg(p, &p);
|
|
|
|
for_ = p + 4;
|
|
|
|
for_ = p + 4;
|
|
|
|
serversay(1, from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_BOT_FSET), "%s %s %s", update_clock(GET_TIME), for_, temp2));
|
|
|
|
serversay(from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_BOT_FSET), "%s %s %s", update_clock(GET_TIME), for_, temp2));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!strncmp(line, "Possible bot ", 13))
|
|
|
|
else if (!strncmp(line, "Possible bot ", 13))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@@ -311,7 +311,7 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
for_ = next_arg(p, &p);
|
|
|
|
for_ = next_arg(p, &p);
|
|
|
|
if ((temp2 = next_arg(p, &p)))
|
|
|
|
if ((temp2 = next_arg(p, &p)))
|
|
|
|
chop(temp2, 1);
|
|
|
|
chop(temp2, 1);
|
|
|
|
serversay(1, from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_BOT_FSET), "%s %s %s", update_clock(GET_TIME), for_, temp2));
|
|
|
|
serversay(from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_BOT_FSET), "%s %s %s", update_clock(GET_TIME), for_, temp2));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (wild_match("Possible % bot *", line))
|
|
|
|
else if (wild_match("Possible % bot *", line))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@@ -328,7 +328,7 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
chop(temp2, 1);
|
|
|
|
chop(temp2, 1);
|
|
|
|
*temp2 = ' ';
|
|
|
|
*temp2 = ' ';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
serversay(1, from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_BOT1_FSET), "%s %s %s %s", update_clock(GET_TIME), possible?possible:"Unknown", for_, temp2));
|
|
|
|
serversay(from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_BOT1_FSET), "%s %s %s %s", update_clock(GET_TIME), possible?possible:"Unknown", for_, temp2));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (wild_match("% % is now operator*", line))
|
|
|
|
else if (wild_match("% % is now operator*", line))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@@ -343,7 +343,7 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
if (*temp2 == '(')
|
|
|
|
if (*temp2 == '(')
|
|
|
|
*temp2 = ' ';
|
|
|
|
*temp2 = ' ';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
serversay(1, from, "%s", convert_output_format(fget_string_var(FORMAT_OPER_FSET), "%s %s %s", update_clock(GET_TIME), fr, temp2));
|
|
|
|
serversay(from, "%s", convert_output_format(fget_string_var(FORMAT_OPER_FSET), "%s %s %s", update_clock(GET_TIME), fr, temp2));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!strncmp(line, "Received SQUIT", 14))
|
|
|
|
else if (!strncmp(line, "Received SQUIT", 14))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@@ -360,7 +360,7 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
if (*temp2 == '(')
|
|
|
|
if (*temp2 == '(')
|
|
|
|
temp2++;
|
|
|
|
temp2++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
serversay(1, from, "%s", convert_output_format(" SQUIT of $1 from $2 %K[%R$3-%K]", "%s %s %s %s", update_clock(GET_TIME), for_, fr, temp2));
|
|
|
|
serversay(from, "%s", convert_output_format(" SQUIT of $1 from $2 %K[%R$3-%K]", "%s %s %s %s", update_clock(GET_TIME), for_, fr, temp2));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!strncmp(line, "Received SERVER", 15))
|
|
|
|
else if (!strncmp(line, "Received SERVER", 15))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@@ -377,7 +377,7 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
if (*temp2 == '(')
|
|
|
|
if (*temp2 == '(')
|
|
|
|
temp2++;
|
|
|
|
temp2++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
serversay(1, from, "%s", convert_output_format(" Received SERVER %c$1%n from %c$2%n %K[%W$3-%K]", "%s %s %s %s", update_clock(GET_TIME), fr, for_, temp2));
|
|
|
|
serversay(from, "%s", convert_output_format(" Received SERVER %c$1%n from %c$2%n %K[%W$3-%K]", "%s %s %s %s", update_clock(GET_TIME), fr, for_, temp2));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!strncmp(line, "Sending SQUIT", 13))
|
|
|
|
else if (!strncmp(line, "Sending SQUIT", 13))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@@ -390,7 +390,7 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
chop(temp2, 1);
|
|
|
|
chop(temp2, 1);
|
|
|
|
if (*temp2 == '(') temp2++;
|
|
|
|
if (*temp2 == '(') temp2++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
serversay(1, from, "%s", convert_output_format(" Sending SQUIT %c$1%n %K[%R$2-%K]", "%s %s %s", update_clock(GET_TIME), fr, temp2));
|
|
|
|
serversay(from, "%s", convert_output_format(" Sending SQUIT %c$1%n %K[%R$2-%K]", "%s %s %s", update_clock(GET_TIME), fr, temp2));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!strncmp(line, "Sending SERVER", 14))
|
|
|
|
else if (!strncmp(line, "Sending SERVER", 14))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@@ -403,7 +403,7 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
chop(temp2, 1);
|
|
|
|
chop(temp2, 1);
|
|
|
|
if (*temp2 == '(') temp2++;
|
|
|
|
if (*temp2 == '(') temp2++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
serversay(1, from, "%s", convert_output_format(" Sending SERVER %c$1%n %K[%W$2-%K]", "%s %s %s", update_clock(GET_TIME), fr, temp2));
|
|
|
|
serversay(from, "%s", convert_output_format(" Sending SERVER %c$1%n %K[%W$2-%K]", "%s %s %s", update_clock(GET_TIME), fr, temp2));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!strncmp(line, "WALLOPS :Remote CONNECT", 23))
|
|
|
|
else if (!strncmp(line, "WALLOPS :Remote CONNECT", 23))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@@ -414,7 +414,7 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
for_ = next_arg(p, &p);
|
|
|
|
for_ = next_arg(p, &p);
|
|
|
|
fr = next_arg(p, &p);
|
|
|
|
fr = next_arg(p, &p);
|
|
|
|
next_arg(p, &temp2);
|
|
|
|
next_arg(p, &temp2);
|
|
|
|
serversay(1, from, "%s", convert_output_format(" Remote Connect of $1:$2 from $3", "%s %s %s %s", update_clock(GET_TIME), for_, fr, temp2));
|
|
|
|
serversay(from, "%s", convert_output_format(" Remote Connect of $1:$2 from $3", "%s %s %s %s", update_clock(GET_TIME), for_, fr, temp2));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!strncmp(line, "Client connecting", 17) || !strncmp(line, "Client exiting", 14))
|
|
|
|
else if (!strncmp(line, "Client connecting", 17) || !strncmp(line, "Client exiting", 14))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@@ -509,7 +509,7 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
serversay(1, from, "%s", convert_output_format(fget_string_var(conn ? FORMAT_SERVER_NOTICE_CLIENT_CONNECT_FSET : FORMAT_SERVER_NOTICE_CLIENT_EXIT_FSET), "%s %s %s %s", update_clock(GET_TIME), for_, q ? q : empty_string, port ? port : empty_string));
|
|
|
|
serversay(from, "%s", convert_output_format(fget_string_var(conn ? FORMAT_SERVER_NOTICE_CLIENT_CONNECT_FSET : FORMAT_SERVER_NOTICE_CLIENT_EXIT_FSET), "%s %s %s %s", update_clock(GET_TIME), for_, q ? q : empty_string, port ? port : empty_string));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!strncmp(line, "Terminating client for excess", 29))
|
|
|
|
else if (!strncmp(line, "Terminating client for excess", 29))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@@ -527,7 +527,7 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
chop(temp2, 1);
|
|
|
|
chop(temp2, 1);
|
|
|
|
q = temp2+1;
|
|
|
|
q = temp2+1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
serversay(1, from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_CLIENT_TERM_FSET), "%s %s %s", update_clock(GET_TIME), for_, q));
|
|
|
|
serversay(from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_CLIENT_TERM_FSET), "%s %s %s", update_clock(GET_TIME), for_, q));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!strncmp(line, "Invalid username:", 17))
|
|
|
|
else if (!strncmp(line, "Invalid username:", 17))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@@ -539,7 +539,7 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
for_ = next_arg(p, &p);
|
|
|
|
for_ = next_arg(p, &p);
|
|
|
|
if ((temp2 = next_arg(p, &p)))
|
|
|
|
if ((temp2 = next_arg(p, &p)))
|
|
|
|
chop(temp2, 1);
|
|
|
|
chop(temp2, 1);
|
|
|
|
serversay(1, from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_CLIENT_INVALID_FSET), "%s %s %s", update_clock(GET_TIME), for_, temp2));
|
|
|
|
serversay(from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_CLIENT_INVALID_FSET), "%s %s %s", update_clock(GET_TIME), for_, temp2));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!strncmp(line, "STATS ", 6))
|
|
|
|
else if (!strncmp(line, "STATS ", 6))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@@ -553,7 +553,7 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
for_ = next_arg(p, &p);
|
|
|
|
for_ = next_arg(p, &p);
|
|
|
|
if ( (temp2 = ++p) )
|
|
|
|
if ( (temp2 = ++p) )
|
|
|
|
chop(temp2, 1);
|
|
|
|
chop(temp2, 1);
|
|
|
|
serversay(1, from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_STATS_FSET), "%s %s %s %s", update_clock(GET_TIME), temp, for_, temp2));
|
|
|
|
serversay(from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_STATS_FSET), "%s %s %s %s", update_clock(GET_TIME), temp, for_, temp2));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!strncmp(line, "Nick flooding detected by:", 26))
|
|
|
|
else if (!strncmp(line, "Nick flooding detected by:", 26))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@@ -561,7 +561,7 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
if (!(flags & NICK_FLOODING))
|
|
|
|
if (!(flags & NICK_FLOODING))
|
|
|
|
goto done;
|
|
|
|
goto done;
|
|
|
|
p = line + 26;
|
|
|
|
p = line + 26;
|
|
|
|
serversay(1, from, "%s", convert_output_format(" Nick Flooding %K[%B$1-%K]", "%s %s", update_clock(GET_TIME), for_));
|
|
|
|
serversay(from, "%s", convert_output_format(" Nick Flooding %K[%B$1-%K]", "%s %s", update_clock(GET_TIME), for_));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!strncmp(line, "Kill line active for", 20) || !strncmp(line+14, "K-line active for", 17))
|
|
|
|
else if (!strncmp(line, "Kill line active for", 20) || !strncmp(line+14, "K-line active for", 17))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@@ -572,14 +572,13 @@ irc.BitchX.com *** Notice -- Nick collision on nickserv(irc.distracted.net <-
|
|
|
|
for_ = line + 20;
|
|
|
|
for_ = line + 20;
|
|
|
|
else
|
|
|
|
else
|
|
|
|
for_ = line + 17;
|
|
|
|
for_ = line + 17;
|
|
|
|
serversay(1, from, "%s", convert_output_format(" Kill line for $1 active", "%s %s", update_clock(GET_TIME), for_));
|
|
|
|
serversay(from, "%s", convert_output_format(" Kill line for $1 active", "%s %s", update_clock(GET_TIME), for_));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!(flags & SERVER_CRAP))
|
|
|
|
if (!(flags & SERVER_CRAP))
|
|
|
|
goto done;
|
|
|
|
goto done;
|
|
|
|
serversay(1, from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_FSET), "%s %s %s", update_clock(GET_TIME), from, stripansicodes(line)));
|
|
|
|
serversay(from, "%s", convert_output_format(fget_string_var(FORMAT_SERVER_NOTICE_FSET), "%s %s %s", update_clock(GET_TIME), from, stripansicodes(line)));
|
|
|
|
add_last_type(&last_servermsg[0], MAX_LAST_MSG, NULL, NULL, NULL, line);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
done:
|
|
|
|
done:
|
|
|
|
reset_display_target();
|
|
|
|
reset_display_target();
|
|
|
|
@@ -617,10 +616,9 @@ static void parse_server_notice(const char *from, char *line)
|
|
|
|
if (get_int_var(OV_VAR) && !(get_server_ircop_flags(from_server) & SERVER_CRAP))
|
|
|
|
if (get_int_var(OV_VAR) && !(get_server_ircop_flags(from_server) & SERVER_CRAP))
|
|
|
|
goto done1;
|
|
|
|
goto done1;
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
serversay(1, f, "%s", convert_output_format(
|
|
|
|
serversay(f, "%s", convert_output_format(
|
|
|
|
fget_string_var(FORMAT_SERVER_NOTICE_FSET), "%s %s %s",
|
|
|
|
fget_string_var(FORMAT_SERVER_NOTICE_FSET), "%s %s %s",
|
|
|
|
update_clock(GET_TIME), f, stripansicodes(line)));
|
|
|
|
update_clock(GET_TIME), f, stripansicodes(line)));
|
|
|
|
add_last_type(&last_servermsg[0], MAX_LAST_MSG, NULL, NULL, NULL, line);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (up_status)
|
|
|
|
if (up_status)
|
|
|
|
|