Set IRC/Purple passwords as 'secret' fields

This commit is contained in:
Jaidyn Ann 2021-07-02 09:19:58 -05:00
parent 2dc364ef55
commit b5b24939ea
2 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,7 @@ resource(1000, "account") message('IMst')
{ {
"name" = "password", "name" = "password",
"description" = "Password:", "description" = "Password:",
bool "is_secret" = true,
int32 "type" = 'CSTR' int32 "type" = 'CSTR'
}, },
"setting" = message "setting" = message

View File

@ -388,6 +388,7 @@ PurpleApp::_ParseProtoOptions(PurplePluginProtocolInfo* info)
passwd.AddString("name", "password"); passwd.AddString("name", "password");
passwd.AddString("description", "Password"); passwd.AddString("description", "Password");
passwd.AddInt32("type", B_STRING_TYPE); passwd.AddInt32("type", B_STRING_TYPE);
passwd.AddBool("is_secret", true);
temp.AddMessage("setting", &passwd); temp.AddMessage("setting", &passwd);
// Whatever custom settings the protocol might like! // Whatever custom settings the protocol might like!