I am trying the following code in a simplistic telnet server.
 
-----
 
constant pLogin = (program)"login.pike";
 
void telnet_connection(object oConnection)
{
 telnet_class(oConnection);             //New connection object
 pLogin oLogin = pLogin;
 oConnection->set_interface(oLogin);
}
 
----
 
Continually I get returned:
Attempt to call the NULL-value
Unknown program: 0(c:/blah/sys/obj/inherit/login)
 
Basically alls I want it to do is connection, make a unique object for each connection, then move that connection to another object that asks questions and such ... anyone able to help me out?