This is a hack to work around the userdata directory limits.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@577
db0b04b0-f4d1-0310-9a6d-
de3e77497b0e
while (*p != '\0')
p++;
break;
+ case 'N':
+ if (me) *p = me->username[0];
+ else if (plrname) *p = plrname[0];
+ else return NULL;
+ p++;
+ *p = '\0';
+ break;
case 'n':
if (me) snprintf (p, end + 1 - p, "%s", me->username);
else if (plrname) snprintf(p, end + 1 - p, "%s", plrname);
# Parameters to the commands are subject to variable substitution:
# %r = dglroot, as defined above
# %n = user nick, if user is logged in
+# %N = first character of user name, if user is logged in
# %u = shed_uid, as defined above, but numeric
# %g = game name, if user has selected a game.
# %s = short game name, if user has selected a game.