#include "conn.h"
#include "class.h"
#include "client.h"
+#include "client-cap.h"
#include "channel.h"
#include "conf.h"
#include "io.h"
}
#endif
+ /* Still waiting for "CAP END" command? */
+ if (Client_Cap(Client) & CLIENT_CAP_PENDING)
+ return CONNECTED;
+
#ifdef PAM
if (!Conf_PAM) {
/* Don't do any PAM authentication at all, instead emulate