Switch chat name URL parm to 'chatname', add 'playername' URL part for initial player follow selection

This commit is contained in:
Mike Primm 2011-12-26 13:10:08 +08:00 committed by mikeprimm
parent bdd5c5335c
commit 227f6a1b80
2 changed files with 10 additions and 1 deletions

View file

@ -19,7 +19,7 @@ componentconstructors['chat'] = function(dynmap, configuration) {
});
var pname = null;
if(configuration.allowurlname) {
pname = dynmap.getParameterByName("playername");
pname = dynmap.getParameterByName("chatname");
if(pname == "") pname = null;
}