There are three issues here:
The Loginserver type is set to MiniLogin if you have done:
Code:
INSERT INTO variables (varname, value, information) VALUES ('LoginType', 'Minilogin', 'Set this to Minilogin to login using a minilogin server :)');
Try:
Code:
delete from variables where varname='LoginType';
to fix that.
Second issue. If you don't have a [ChatChannelServer] server block (and your world was compiled with the directive IRC included) the world initialisation doesn't execute a bit of code (LoginServerInfo=1 ), so the world never connects to the login server.
Last thing, you should be using loginport=5994, not 5999.