mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-07 18:43:12 +02:00
#if defined(DEBUGMODE) && !defined(_WIN32)
This commit is contained in:
@@ -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).
|
||||
|
||||
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user