X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Firc-server.c;h=7770be856cb0840aee2464633d1bd60344fb5e16;hp=a8b82c96047f5f1b99e40490f798c7ccea27da1b;hb=139f5961a078dfd23a469d98c3942f42595854aa;hpb=4ec19c03323c872a576d6891b3c5fa3fe70261c4 diff --git a/src/ngircd/irc-server.c b/src/ngircd/irc-server.c index a8b82c96..7770be85 100644 --- a/src/ngircd/irc-server.c +++ b/src/ngircd/irc-server.c @@ -82,7 +82,7 @@ IRC_SERVER( CLIENT *Client, REQUEST *Req ) if (strcasecmp(Req->argv[0], Conf_Server[i].name) == 0) break; - /* Makre sure the remote server is configured here */ + /* Make sure the remote server is configured here */ if (i >= MAX_SERVERS) { Log(LOG_ERR, "Connection %d: Server \"%s\" not configured here!", @@ -152,17 +152,17 @@ IRC_SERVER( CLIENT *Client, REQUEST *Req ) Client_SetType(Client, CLIENT_UNKNOWNSERVER); #ifdef ZLIB - if (strchr(Client_Flags(Client), 'Z') + if (Client_HasFlag(Client, 'Z') && !Zip_InitConn(Client_Conn(Client))) { Conn_Close(Client_Conn(Client), - "Can't inizialize compression (zlib)!", + "Can't initialize compression (zlib)!", NULL, false ); return DISCONNECTED; } #endif #ifdef IRCPLUS - if (strchr(Client_Flags(Client), 'H')) { + if (Client_HasFlag(Client, 'H')) { LogDebug("Peer supports IRC+ extended server handshake ..."); if (!IRC_Send_ISUPPORT(Client)) return DISCONNECTED;