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() ...@@ -598,7 +598,8 @@ function main()
case "normalize": case "normalize":
case "count": case "count":
case "colls": case "colls":
case "sub_default": case "msg-default":
case "msg_default":
cmds.push(arg); cmds.push(arg);
break; break;
default: default:
...@@ -773,7 +774,8 @@ function main() ...@@ -773,7 +774,8 @@ function main()
printf("%s\r\n", success ? "Successful" : "FAILED!"); printf("%s\r\n", success ? "Successful" : "FAILED!");
ini.close(); ini.close();
break; break;
case "sub_default": case "msg-default":
case "msg_default":
if(!files.length) if(!files.length)
files.push(optval[cmd]); files.push(optval[cmd]);
if(!files.length) { if(!files.length) {
...@@ -795,7 +797,7 @@ function main() ...@@ -795,7 +797,7 @@ function main()
alert(ini.name + " open error " + ini.error); alert(ini.name + " open error " + ini.error);
break; break;
} }
var success = ini.iniSetValue("avatars", "sub_default", data); var success = ini.iniSetValue("avatars", "msg_default", data);
printf("%s\r\n", success ? "Successful" : "FAILED!"); printf("%s\r\n", success ? "Successful" : "FAILED!");
ini.close(); ini.close();
break; break;
......
...@@ -26,7 +26,7 @@ function draw_default_avatar(sub) ...@@ -26,7 +26,7 @@ function draw_default_avatar(sub)
if(!avatar) if(!avatar)
avatar = options[msg_area.sub[sub].grp_name.toLowerCase() + "_default"]; avatar = options[msg_area.sub[sub].grp_name.toLowerCase() + "_default"];
if(!avatar) if(!avatar)
avatar = options.sub_default; avatar = options.msg_default;
if(avatar) if(avatar)
Avatar.draw_bin(avatar, /* above: */true, /* right-justified: */true, bbs.msghdr_top_of_screen); 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