.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > RealBot > The RealBot 'Source'
The RealBot 'Source' Discuss things about the source code. You can here point out bugs, share ideas and code. Assign to become an 'official team member' and so on!

Reply
 
Thread Tools
Printing INI files...
Old
  (#1)
dstruct2k
 
dstruct2k's Avatar
 
Status: Offline
Posts: 225
Join Date: Feb 2004
Default Printing INI files... - 14-06-2004

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?
  
Reply With Quote
Re: Printing INI files...
Old
  (#2)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: Printing INI files... - 14-06-2004

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.

Last edited by Whistler; 14-06-2004 at 03:43..
  
Reply With Quote
Re: Printing INI files...
Old
  (#3)
dstruct2k
 
dstruct2k's Avatar
 
Status: Offline
Posts: 225
Join Date: Feb 2004
Default Re: Printing INI files... - 14-06-2004

Thanks!
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com