Skip to content
Snippets Groups Projects
Commit 2d051c51 authored by rswindell's avatar rswindell
Browse files

Change name of key from "sub_default" to "msg_default" (it's the default

avatar for all message areas not otherwise given a default value).
parent 344d8e67
Branches
Tags
No related merge requests found
......@@ -598,7 +598,8 @@ function main()
case "normalize":
case "count":
case "colls":
case "sub_default":
case "msg-default":
case "msg_default":
cmds.push(arg);
break;
default:
......@@ -773,7 +774,8 @@ function main()
printf("%s\r\n", success ? "Successful" : "FAILED!");
ini.close();
break;
case "sub_default":
case "msg-default":
case "msg_default":
if(!files.length)
files.push(optval[cmd]);
if(!files.length) {
......@@ -795,7 +797,7 @@ function main()
alert(ini.name + " open error " + ini.error);
break;
}
var success = ini.iniSetValue("avatars", "sub_default", data);
var success = ini.iniSetValue("avatars", "msg_default", data);
printf("%s\r\n", success ? "Successful" : "FAILED!");
ini.close();
break;
......
......@@ -26,7 +26,7 @@ function draw_default_avatar(sub)
if(!avatar)
avatar = options[msg_area.sub[sub].grp_name.toLowerCase() + "_default"];
if(!avatar)
avatar = options.sub_default;
avatar = options.msg_default;
if(avatar)
Avatar.draw_bin(avatar, /* above: */true, /* right-justified: */true, bbs.msghdr_top_of_screen);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment