--- deliantra/server/ext/login.ext 2007/01/23 03:45:44 1.28 +++ deliantra/server/ext/login.ext 2007/02/17 23:54:35 1.31 @@ -107,7 +107,7 @@ . "Chose another, or wait till the other session has ended.", cf::NDI_RED ); - } elsif ($user =~ /^[a-zA-Z0-9][a-zA-Z0-9\-_]{2,17}$/) { + } elsif ($user =~ /^[a-zA-Z0-9][a-zA-Z0-9\-_]{2,17}\z/) { last; } else { $ns->send_drawinfo ( @@ -285,7 +285,7 @@ "Ok, quitting, hope to see you again.", cf::NDI_UNIQUE | cf::NDI_RED); $pl->ns->flush; - $pl->quit_character; + cf::async { $pl->quit_character }; } }); }; @@ -381,8 +381,7 @@ ## pl_ref == one from object + one from cf::PLAYER ## ob_ref == one from simply being an object - #TODO: the above should be correct, understand the 1/0, respectively - if ($pl_ref == 1 && $ob_ref == 0) { + if ($pl_ref == 2 && $ob_ref == 1) { warn "player-scheduler destroy ", $ob->name;#d# # remove from sight and get fresh "copies"