Main     News     FAQs     Docs     Links     License     Download     Support     Live Demo

Naken Chat

Advanced Compiling Options

I'm trying to move the advanced stuff into the new configure script of Naken Chat 2.08 and above, but for now some of the compile options will still be globals.h

In the configure script in the root directory, the following options:

  --help                    list options
  --cflags=CFLAGS           extra compiler flags
  --prefix=PATH             path to install to
  --compiler-prefix=PREFIX  for cross-compilers
  --disable-keepalive       disable socket keepalive option
  --disable-userchanlist    disable userlist based on channel
  --enable-debug            compile in debug code
  --enable-hidden-caves     enable hidden caves feature
  --enable-dotQ             compile in .Q option
  --enable-whofile          compile support to save current userlist to a file
  --enable-elite            enable the 31i73 filter
  --enable-language=LANG    Set the server's language

--disable-userchanlist makes the userlist box on the applet behave differently. With this setting enabled, the user list on the applet will only show you users who are in your channel. Otherwise it shows all users on the chat.

--enable-dotQ will compile in the .QUIT option.

--enable-debug will compile in debug code and give you a -d command line option.

--enable-elite filter is Oliver Hillmann's 3l173 filter. It will make all text on the chat become hackerish if you turn the option on with a .3. If you don't know what this means, just forget about it.. it's a "fun" option and not useful to you.

--enable-whofile gives you option to constantly write to a file on computer that has the current "who's online" list. This would be good if you want to always be able to see who's online without logging into the chat

--enable-language=LANG allows you to choose a new language for all the server messages. You can see what languages are available in src/languages/.

In the globals.h file in the src dir you can edit the following defines:

#define MAXCONN maximum number of connections the server can have
#define MAXCHAN 20 maxiumum number of channels the server supports
#define MAX_USER_THREADS 4 number of threads that are created... severs with A LOT of users probably should have more threads.
#define MAINCHANNEL "Main" name of the "Main" channel
#define DEFAULT_PORT 6666 default port to start the server on
#define GC_TIME 300 number of seconds before deallocating unused connections/garbage collection/ checking for idle users to kick off
#define MAX_USER_NAME_LENGTH 17 maximum length for a chat nickname
#define EMOTE_CHAR '%' default emote char
#define BAD_WORD_BUFFER_SIZE 1024 size of the bad word buffer in bytes. the bigger the more words you can handle
#define BANS_BUFFER_SIZE 4096 size of the bans buffer in bytes. the bigger the more people you can ban
#define ALLOWS_BUFFER_SIZE 4096 size of the allows buffer in bytes. the bigger the more people you can allow
#define WHO_BUFFER_SIZE 250 this is the length of the "who" data before the chat breaks it up. never mind




Copyright 1997-2011 - Michael Kohn

Please visit my many other projects, including free J2ME Java games for Mobile phones, graphics and sound programs, chat software, and much more at http://www.mikekohn.net.

This page was designed to work with all standard HTML compatible webbrowsers including Firefox, IE, Safari, and Links.