.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   The RealBot 'Source' (http://forums.bots-united.com/forumdisplay.php?f=52)
-   -   Printing INI files... (http://forums.bots-united.com/showthread.php?t=1965)

dstruct2k 14-06-2004 01:54

Printing INI files...
 
When the server loads, all INI files that are read are printed to the console. This probably would cause some problems with SSL servers and such.

Any way to disable that?

Whistler 14-06-2004 03:41

Re: Printing INI files...
 
search for this in the iniparser.cpp:
Code:

// Reads out an entire sentence and returns it
void
INI_Sentence (FILE * f, char result[80])
{

  char ch;
  int pos = 0;

  // clear out entire string
  for (int i = 0; i < 80; i++)
    result[i] = '\0';

  while ((feof (f) == 0) && ((ch = fgetc (f)) != '\n'))
    {
      result[pos] = ch;
      pos++;

      // do not allow strings greater then 80 characters. This check prevents a crash for
      // users who do exceed the limit.
      if (pos > 79)
        break;

      putchar (ch);
    }
}

... and comment out that "putchar(ch)" line.

dstruct2k 14-06-2004 05:45

Re: Printing INI files...
 
Thanks!


All times are GMT +2. The time now is 14:31.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.