names.cnf not loading?

Posted by Vchat20 on Mon 06 Nov 2006 01:07 AM — 3 posts, 15,241 views.

USA #0
Alright. I have been having some trouble trying to get this problem sorted here. The fact is we have been getting a number of people creating new players with obviously fake names like 'character' and 'name' amongst others. I've tried setting them in the names.cnf file like what's supposed to work, but no matter what I try, it never works. Tried an in-place reboot many times, even tried chmodding the names.cnf file 777 just for kicks. netmush.log doesnt read anything on names.cnf even being glanced at. And I am doubly sure its set and uncommented in mush.cnf

Any ideas what the problem could be here? I am at a loss of where to look for any possible solution.

Btw, this is a redhat compiled penn 1.8.1 patchlevel 9 here if it helps. There have been some MINOR hardcode changes made by a co-admin who actually owns the server. I think one of those changes was adding color to the connect.txt screen which is the ONLY thing I can think that may cause a problem if anything hardcode related.
Australia Forum Administrator #1
I don't know what the problem is here. I tried it on my copy (PennMUSH version 1.7.6 patchlevel 14 [09/23/2003]) and it works fine. Trying to make a character called "name" gave me "Either there is already a player with that name, or that name is illegal.".

Try typing:


@config files

Files used by the MUSH
 input_database                           data/indb
 output_database                          data/outdb
 crash_database                           data/PANIC.db
 mail_database                            data/maildb
 chat_database                            data/chatdb
 compress_suffix                          .gz
 compress_program                         gzip
 uncompress_program                       gunzip
 access_file                              access.cnf
 names_file                               names.cnf


I see in my case that the file is names.cnf, maybe it is different for you?

A quick look at the source for my version shows that if the names.cnf file does not exist, the name is considered valid, there is no error message about the file being missing. Perhaps you have your names.cnf file in the wrong directory or something?

You may want to edit the function forbidden_name in predicat.c and put a message there if the file cannot be opened. Or, run the MUSH under gdb and put a breakpoint in for forbidden_name function.
USA #2
Yup. Already doublechecked @config. name.cnf is in the correct directory alongside the others like access.cnf and mush.cnf

As for the forbidden_name function, ill have to wait till the admin who actually runs the server gets on since he's the only one with access to all the compile apps on the server for the time being. But ill take a gander at the source code for the time being and see if I cant find anything in there.