From 3fa0b692ce223bef924f2ed1b98d0ce66c2acd22 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sun, 5 Nov 2006 00:28:39 +0000 Subject: [PATCH] #if defined(DEBUGMODE) && !defined(_WIN32) --- Changes | 1 + src/s_bsd.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index a4a6626e8..00f4ddfcd 100644 --- a/Changes +++ b/Changes @@ -1348,3 +1348,4 @@ We now print a warning when this happens (both on the IRC command and command-line). Suggested by JasonTik (#0002953). - Win32: Fixed a few compiler warnings, suggested by Zell (#0002890). +- Moved a couple isatty() calls to DEBUGMODE (#0002945). diff --git a/src/s_bsd.c b/src/s_bsd.c index e45cc403c..0ade0b2a4 100644 --- a/src/s_bsd.c +++ b/src/s_bsd.c @@ -704,7 +704,7 @@ static int check_init(aClient *cptr, char *sockn, size_t size) } /* If descriptor is a tty, special checking... */ -#ifndef _WIN32 +#if defined(DEBUGMODE) && !defined(_WIN32) if (isatty(cptr->fd)) #else if (0) @@ -1203,7 +1203,7 @@ aClient *add_connection(aClient *cptr, int fd) * m_server and m_user instead. Also connection time out help to * get rid of unwanted connections. */ -#ifndef _WIN32 +#if defined(DEBUGMODE) && !defined(_WIN32) if (isatty(fd)) /* If descriptor is a tty, special checking... */ #else if (0)