assert( Client != NULL );
assert( Req != NULL );
+ if (Client_Type(Client) != CLIENT_GOTPASS
+ && Client_Type(Client) != CLIENT_GOTPASS_2813
+ && Client_Type(Client) != CLIENT_UNKNOWNSERVER
+ && Client_Type(Client) != CLIENT_SERVER
+ && Client_Type(Client) != CLIENT_SERVICE) {
+ LogDebug("Ignored ERROR command from \"%s\" ...",
+ Client_Mask(Client));
+ IRC_SetPenalty(Client, 2);
+ return CONNECTED;
+ }
+
if (Req->argc < 1)
Log(LOG_NOTICE, "Got ERROR from \"%s\"!",
Client_Mask(Client));
if (nick != NULL && host != NULL) {
if (strcasecmp(nick, Client_ID(cl)) == 0 &&
strcasecmp(user, Client_User(cl)) == 0 &&
- strcasecmp(host, Client_HostnameCloaked(cl)) == 0)
+ strcasecmp(host, Client_HostnameDisplayed(cl)) == 0)
break;
else
continue;
if (strcasecmp(user, Client_User(cl)) != 0)
continue;
if (host != NULL && strcasecmp(host,
- Client_HostnameCloaked(cl)) != 0)
+ Client_HostnameDisplayed(cl)) != 0)
continue;
if (server != NULL && strcasecmp(server,
Client_ID(Client_Introducer(cl))) != 0)