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",
"description" = "Password:",
bool "is_secret" = true,
int32 "type" = 'CSTR'
},
"setting" = message

View File

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